How to install IIS Remote Management using PowerShell in Windows Server Core

Here is a short post for you on how to install and enable IIS Remote Management in Windows Server Core, using PowerShell. This allows you to remotely manager your IIS webservers. If you want a graphical (or GUI) tool to install in Windows (Server or 11/10), see Install and setup IIS Manager for Remote Administration in Windows Server IIS.

By default, there is no IIS Manager available on Windows Server Core. So you’ll need to install and configure IIS Remote Management, which’ll allow you remotely manage your IIS server and manage your web apps. Here are the steps to install IIS Remote Management in Windows Server Core using PowerShell.

Install IIS Remote Management

  1. Open PowerShell as administrator
  2. Install the Remote Management Service
    1. Install-WindowsFeature Web-Mgmt-Service
  3. Update the registry to enable remote management
    1. Set-ItemProperty HKLM:SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1 -PropertyType DWORD -Force
    2. for additional security, set: Set-ItemProperty HKLM:SOFTWARE\Microsoft\WebManagement\Server -Name RequiresWindowsCredentials -Value 1 -PropertyType DWORD -Force
  4. Set the Web Management Service (WMSVC) to start automatically:
    1. sc.exe config WMSVC start=auto
    2. net start WMSVC

Configure your firewall, add a rule

You need to add a rule so you are allowed to connect. The WMSVC listens on port 8172 TCP, let’s open that one up. By service name:

netsh advfirewall firewall add rule name="IIS Remote Management" dir=in action=allow service=WMSVC
Code language: PowerShell (powershell)

or by port number:

netsh advfirewall firewall add rule name="IIS Remote Management" dir=in action=allow protocol=TCP localport=8172
Code language: PowerShell (powershell)
Sharing is caring

1 thought on “How to install IIS Remote Management using PowerShell in Windows Server Core”

Comments are closed.

Mentions

  • Jan Reilink
Show Buttons
Hide Buttons