How to Install IIS and asp.net modules on windows 2012 r2 using Powershell

By | April 9, 2014
Open your Powershell in Run as Administrator mode: then run the following powershell Cmdlet
Set-ExecutionPolicy RemoteSigned
Import-Module ServerManager
install-windowsfeature net-framework-core
Add-WindowsFeature Web-Server, Web-Static-Content, Web-Default-Doc, Web-Http-Errors, Web-Asp-Net, Web-Net-Ext, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Http-Logging, Web-Log-Libraries, Web-Request-Monitor, Web-Http-Tracing, Web-Basic-Auth, Web-Windows-Auth, Web-Client-Auth, Web-Filtering, Web-Stat-Compression, Web-Dyn-Compression, NET-Framework-45-Core, NET-WCF-HTTP-Activation45, Web-Asp-Net45, Web-Mgmt-Tools, Web-Scripting-Tools, Web-Mgmt-Console, Web-Mgmt-Compat, Windows-Identity-Foundation, Server-Media-Foundation, BITS
restart-computer

Leave a Reply

Your email address will not be published. Required fields are marked *