2020年1月

Server 2016 Core 安装IIS
PowerShell cmd-let
1.安装webserver角色
Install-WindowsFeature Web-Server

2.安装web管理服务
Install-WindowsFeature Web-Mgmt-Service

3.允许web远程管理功能
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1

4.重启动web远程管理功能
Net Stop WMSVC
Net Start WMSVC

5.配置防火墙,允许web远程管理连接.WMSVC默认使用TCP port 8172
netsh advfirewall firewall add rule name=”Allow Web Management” dir=in action=allow service=”WMSVC”

6.使用win7或其它的IIS管理器连接到Server Core IIS