Install IIS on server using PowerShell
Script for
Individual Install of IIS (Windows 2012)
The
following script can be used for installation on the local server:
Open
a Powershell window as Admin and run the following:
Install-WindowsFeature
Web-Server,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Http-Redirect,Web-Health,Web-Http-Logging,Web-Request-Monitor,Web-Performance,Web-Stat-Compression,Web-Security,Web-Filtering,Web-CertProvider,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-ASP,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Lgcy-Scripting,Web-Lgcy-Mgmt-Console,Web-Metabase,Web-WMI,Web-Scripting-Tools
Script for
Individual Install on a remote server of IIS (Windows 2012)
The
following script can be used for installation on the remote server (the
–ComputerName switch at the end)
Install-WindowsFeature
Web-Server,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Static-Content,Web-Http-Redirect,Web-Health,Web-Http-Logging,Web-Request-Monitor,Web-Performance,Web-Stat-Compression,Web-Security,Web-Filtering,Web-CertProvider,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-ASP,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Lgcy-Scripting,Web-Lgcy-Mgmt-Console,Web-Metabase,Web-WMI,Web-Scripting-Tools
-ComputerName CO1VMTFSAT
Comments
Post a Comment