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
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.
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.
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.
Open a PowerShell prompt and use the Get-WindowsFeature
cmdlet.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With