Skip to content

Instantly share code, notes, and snippets.

@Santaro255
Created July 17, 2019 10:00
Show Gist options
  • Save Santaro255/120b4ae06a16e9b18ef50a840007ae5c to your computer and use it in GitHub Desktop.
Save Santaro255/120b4ae06a16e9b18ef50a840007ae5c to your computer and use it in GitHub Desktop.
Install-WindowsFeature -Name Web-Mgmt-Service
iisreset -noforce
Set-ItemProperty -Path HKLM:\Software\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1
Set-Service -Name WMSvc -StartupType Automatic
Start-Service -Name WMSvc
New-NetFirewallRule -Name "Allow IIS Remote Management" -DisplayName "Allow IIS Remote Management" -Direction Inbound -Action Allow -Service WMSvc -Enabled True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment