Install iis web server using powershell

1. open power shell

2. 

PS C:UsersMartin> get-windowsfeature web*

3. install default  IIS 


PS C:UsersMartin> install-windo[By cnblogs.com/GoCircle]wsfeature web-server

4. install Asp.net3.5

PS C:UsersMartin> install-windowsfeature web-Asp-Net

5. install Asp.net4.6

PS C:UsersMartin> install-windowsfeature web-Asp-Net45

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             Success        {ASP.NET 4.6, .NET Extensibility 4.6}

 6. install admin tools

PS C:UsersMartin> install-windowsfeature web-Mgmt-tools

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    No             Success        {IIS Management Console, Management Tools}
原文地址:https://www.cnblogs.com/yuchsheng/p/13891420.html