Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows Server 2012 R2 / Remote IIS Management in Windows Server 2016/2012 R2

January 18, 2023 Windows Server 2012 R2Windows Server 2016

Remote IIS Management in Windows Server 2016/2012 R2

A web-server Internet Information Service in Windows 2016 / 2012 / R2, like previous IIS versions, can be managed remotely. In fact, it is convenient enough to manage multiple IIS servers from a single console, and it is almost the only way to manage a web server running in the Core / Nano mode. However, by default the remote IIS management is disabled, and if you try to add a remote server with the running IIS to the IIS Management Console (Connect to a Server menu) on another server, the following error message appears:

iis remote connect to a server

Could not connect to the specified computer
Details: Unable to connect to the remote server

IIS console error: Could not connect to the specified computer

Contents:
  • Installing IIS Management Service
  • Allow Non-Admin accounts to Remotely Manage the IIS Site
  • How to Manage IIS Servers Remotely from Windows 10?
  • IIS Remote Management and TLS 1.1 / TLS 1.2 Support

Installing IIS Management Service

The matter is that during the standard IIS installation the service responsible for its remote management (IIS Management Service) is not being installed. You can make sure that this service is missing in the system using the following PowerShell command:

Get-WindowsFeature *web-mgmt*

Posh: get-windowsfeature

As you can see, the Web-Mgmt-Service service is not installed. Install it by executing the following PowerShell command with local admin permissions:

Add-WindowsFeature Web-Mgmt-Service

Or you can use the PowerShell cmdlet to install feature:

Install-WindowsFeature Web-Mgmt-Service

You can also install the Management Service component from the Server Manager console:

install Management Service tool

Then restart the IIS web service:
iisreset –noforce

install iis web mgmt service win 2012

The next step is to allow remote connections in the IIS web server settings. To do it, open Management Service item in the Management section of IIS Manager.

iis section: managment service

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 subnets for which the connections are allowed. The remote connection service uses an SSL certificate, but you can use another one if you imported it into the server’s certificate store (you can create and use a self-signed SSL certificate using PoSh). Save the changes.

Note. By default, the port 8172 is used for remote IIS management. When you save changes, this port will be opened in Windows Firewall automatically.

enable iis remote managment: Enable remote connections

Note. You can activate this option through the registry on the remote IIS server running in the Core mode by setting the parameter EnableRemoteManagement in the registry key HKLM\Software\Microsoft\WebManagement\Server to 1. You can use the command:

Reg Add HKLM\Software\Microsoft\WebManagement\Server /V EnableRemoteManagement /T REG_DWORD /D 1

In this case you have to create the firewall rule 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

net start wmsvc (Web Management Service)

After that, a remote IIS web server can be added to the IIS Manager console and you can manage the IIS server, multiple sites on it the same way as the local web server.

iis remote managment in windows server 2012

Allow Non-Admin accounts to Remotely Manage the IIS Site

By default, only users with administrator privileges have the permission to remotely manage the IIS server. In order to grant the permission to IIS remote management for standard users, it is necessary to grant the corresponding permissions at the level of each IIS website. Select a site and find the IIS Manager Permissions option.

IIS Manager Permissions

In the Actions panel, click on Allow User. Select the user account to which you want to grant access to IIS and click OK.

allow user to remotely manage the iis website

User permissions to manage sites on IIS server are configured in the Feature Delegation section at the IIS server level.

IIS Feature Delegation

You can select one of three user access levels for each IIS server management functional: Read Only, Read/Write or Not Delegated.

How to Manage IIS Servers Remotely from Windows 10?

If you need to remotely manage IIS servers from a client desktop with Windows 10 (Windows 7 or 8.1), you need to install the IIS Management Console from: Turn Windows features on or off -> Internet Information Services -> Web Management Tools -> IIS Management Console.

Turn on feature IIS Management Console

You can install this feature using the PowerShell command:

Enable-WindowsOptionalFeature -Online -FeatureName "IIS-ManagementService"

However, when you run the IIS Manager console in Windows 10, the Connect to a server item in the menu is missing.

Missing option "Connect to a IIS server" on windows 10

To be able to connect remotely to IIS from Windows 10, you need to download and install the package IIS Manager for Remote Administration (https://www.microsoft.com/en-us/download/details.aspx?id=41177).

Installing IIS Manager for Remote Administration

Tip. There is a version of IIS Manager for x64 (inetmgr_amd64_en-US.msi) and x86 OS (inetmgr_x86_en-US.msi).

After installation, you need to restart the IIS Manager and connect to the site. If when connecting to IIS, it turns out that the console version is different on the client and the server, a notification will appear: it says that you need to update the console version (all necessary files will be automatically downloaded from the server).

update iis manager console with new features

Now you must successfully connect to your IIS server and remotely manage it from your desk.

IIS Remote Management and TLS 1.1 / TLS 1.2 Support

If you have disabled the unsecure SSLv3 and TLS 1.0 protocols on IIS and left only TLS 1.1/ TLS 1.2, then when remotely connecting to IIS, an error will appear:

The underlying connection was closed: An unexpected error occurred on a send.

To fix the problem it is necessary to make changes in the registry on the client side, for the mandatory use of the TLS 1.2 protocol during connection. Settings depend on the version of Windows.

Windows 10 and Windows Server 2016:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]"SchUseStrongCrypto"=dword:00000001[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]"SchUseStrongCrypto"=dword:00000001

Windows 2012/ R2 and Windows 8/8.1:

NET Framework 4.5.2 or higher must be installed (how to check which versions of the NET Framework are installed).

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]"SchUseStrongCrypto"=dword:00000001[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319]"SchUseStrongCrypto"=dword:00000001

Windows Server 2008 R2 / Windows 7:

You must first install the update KB3154518 to enable TLS 1.2 in the .NET Framework 3.5.1.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727]"SystemDefaultTlsVersions"=dword:00000001[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727]"SystemDefaultTlsVersions"=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols][HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1][HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client]"DisabledByDefault"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]"DisabledByDefault"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2][HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client]"DisabledByDefault"=dword:00000000[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server]"DisabledByDefault"=dword:00000000

3 comments
3
Facebook Twitter Google + Pinterest
previous post
“Downloading updates 0%” Issue on Windows Server 2016 and Windows 10
next post
How to Get My Public IP Address with PowerShell

Related Reading

Redirect HTTP to HTTPS in IIS (Windows Server)

September 7, 2023

Add an Additional Domain Controller to an Existing...

September 6, 2023

How to Install an SSL Certificate on IIS...

September 5, 2023

Fix: Remote Desktop Licensing Mode is not Configured

August 24, 2023

Extending a Disk Volume (Partition) in Windows

August 10, 2023

3 comments

Tim December 12, 2018 - 11:09 pm

Appreciate this, we are going through and disabling old protocols and this article was helpful

Reply
Robert December 10, 2019 - 7:08 pm

Thank you for your work, very good instructions. I have no problem to connect remotely, but when I right click on a site or application, I don’t see “Edit Permissions…”. When I use IIS manager locally, I can see that option. Any idea how to fix this?

Reply
Robert December 10, 2019 - 7:29 pm

OK, I’ve figured out a work around. Just use windows share to access the site folders/files, and then edit permission from there.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Managing Printers and Drivers with PowerShell in Windows 10 / Server 2016
  • Managing Printers from the Command Prompt in Windows 10 / 8.1
  • Fix: RDP Authentication Error Has Occurred – The Function Requested Is Not Supported
  • Windows Server Licensing for Virtual Environments
  • Installing a Free Let’s Encrypt TLS/SSL Certificate on IIS Web Server / RDS
  • RDP Authentication Error: CredSSP Encryption Oracle Remediation
  • Configuring an FTP Server with User Isolation on Windows Server 2016 / 2012 R2
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top