Created
July 17, 2019 10:00
-
-
Save Santaro255/120b4ae06a16e9b18ef50a840007ae5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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