Home > DevOps > Turn on IIS Remote Management

Turn on IIS Remote Management

I saw this on docs.microsoft.com and since I was always looking for how to do it, I figured I would repost it all together.


#Install the windows component
Install-WindowsFeature -Name 'Web-Mgmt-Service'

#Turn on Remote Management via Registry Key
$regpath = "HKLM:\SOFTWARE\Microsoft\WebManagement\Server"
$regkey = 'EnableRemoteManagement'</div>
$regkeyvalue = '1'
New-ItemProperty-Path $regpath-Name $regkey-Value $regkeyvalue-PropertyType 'DWORD'-Force |Out-Null

#Start the Service
Start-Service WMSVC


And your all good to go. Don’t forget the default port for IIS remote management is 8172.