以Win7为例,可以通过本机的IIS管理器(inetmgr.exe)来管理其他服务器的IIS(Windows 2008 or above).
需要在IIS服务器上做以下步骤:
1. 安装IIS管理服务(IIS Management Service)
可以通过添加/删除Web功能来添加,或者可以执行以下来安装管理服务:
Install-WindowsFeature Web-Mgmt-Service
设置IIS管理服务自动启动:
sc config WMSVC start=auto
2. 允许IIS远程管理
添加注册表值允许IIS远程管理:
注册表:HKLM\SOFTWARE\Microsoft\WebManagement\Server,设置EnableRemoteManagement = 1
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1
然后重启一下Web Management Service
Net Stop WMSVC
Net Start WMSVC
3. 设置防火墙,允许连接
netsh advfirewall firewall add rule name=”Allow Web Management” dir=in action=allow service=”WMSVC”
设置完成后,就可以打开IIS管理器,点击连接至服务器,输入Server IP或者Server Name, 输入用户名和密码就可以连到到IIS。