A web-server Internet Information Service in Windows 2012 / R2 (IIS 8), like earlier IIS versions, can be managed remotely. In fact, it is convenient enough to manage a number of IIS servers from a single console, and it is almost the only way to manage a web server running in the Core mode. However, by default the remote IIS management is disabled if you try to add a remote server with the IIS running to the IIS Management Console (Connect to a Server menu) on another server. The following error message appears:
Details: Unable to connect to the remote server
The matter is that during the standard IIS installation the service responsible for its remote management (IIS Management Service) is not installed. You can make sure that this service is absent in the system using the following Powershell command:
As we can see, Web-Mgmt-Service is not installed. Let’s install it, running the following Powershell command with administrator privileges:
Then restart IIS:
Check the «Enable remote connections» option in Management Service section.
Here you can restrict connections to the IIS Management Console by IP address. To do it, deny connections for unspecified clients (Access for unspecified clients:Deny) and specify IP address/IP subnet for which the connection is allowed. Save the changes.
Reg Add HKLM\Software\Microsoft\WebManagement\Server /V EnableRemoteManagement /T REG_DWORD /D 1
In this case you have to create the rule for the firewall manually:
netsh advfirewall firewall add rule name=”Allow IIS Web Management” dir=in action=allow service=”WMSVC”
Now you just have to start Web Management Service:
net start wmsvc
And configure the service to start automatically when the system starts up:
set-service wmsvc -StartupType Automatic
Or as follows:
sc config WMSVC start= auto