Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the name of the IIS features

I want to script the setup of a machine with powershell and I have no idea how to find the names of the module. I want to build the same script than the script bellow but for asp.net mvc 3, URL Rewrite 2.0, URL authorization...

I tried to search in google, web plateform installer... Am I missing something ?

Ex :

Import-Module ServerManager
$features = @(
   "Web-WebServer",
   "Web-Static-Content",
   "Web-Http-Errors",
   "Web-Http-Redirect",
   "Web-Stat-Compression",
   "Web-Filtering",
   "Web-Asp-Net45",
   "Web-Net-Ext45",
   "Web-ISAPI-Ext",
   "Web-ISAPI-Filter",
   "Web-Mgmt-Console",
   "Web-Mgmt-Tools",
   "NET-Framework-45-ASPNET"
)
Add-WindowsFeature $features -Verbose
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y webdeploy
like image 562
rad Avatar asked Mar 08 '16 22:03

rad


People also ask

Where is the Features view in IIS?

Click Content View at the bottom of the workspace area. Select an item in the list to view additional information, or right-click an item and click Switch to Features View to change to Features View and configure IIS settings for the item.

What is IIS service name?

Microsoft Internet Information Services (IIS, formerly called Internet Information Server) is a set of Internet-based services for servers using Microsoft Windows. The servers currently include FTP, SMTP, NNTP, WebDAV and HTTP/HTTPS.

Can not find Internet Information Services IIS Manager?

Press the Windows Key and type Windows Features, select the first entry Turn Windows Features On or Off. Make sure the box next to IIS is checked. If it is not checked, check it. This might take a few minutes, but this will install everything you need to use IIS.


1 Answers

Open a PowerShell prompt and use the Get-WindowsFeature cmdlet.

enter image description here

I believe this PS module is installed by default on servers. For client machines, running Windows 7 for example, you can install the Remote Server Management Tools - https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=7887

like image 83
chief7 Avatar answered Oct 15 '22 16:10

chief7