How to install IIS Web Management Service (WMSVC) using PowerShell in Windows Server Core

Here is a short post for you on how to install and enable IIS Web Management Service (WMSVC) 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 Web Management Service (WMSVC), which’ll allow you to manage your IIS server and web apps remotely. Here are the steps to install IIS Web Management Service (WMSVC) in Windows Server Core using PowerShell.

Install IIS Web Management Service for Remote IIS Administration and 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

or by port number:

netsh advfirewall firewall add rule name="IIS Remote Management" dir=in action=allow protocol=TCP localport=8172

Hi! Join the discussion, leave a reply!

Loading time: 104 queries, 0.188 seconds using 13570104 bytes memory. Peak memory usage: 13951416 bytes.