Skip to content

Commit 7dbcf16

Browse files
authored
Merge pull request #54867 from cnotin/patch-1
Fix missing '-' in powershell parameter
2 parents f0c5814 + b1d2a37 commit 7dbcf16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/troubleshooting/disable-guest-os-firewall-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ If you have a working Azure agent, you can use [Custom Script Extension](../exte
4646
> ```
4747
> Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile' -name "EnableFirewall" -Value 0
4848
> Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile' -name "EnableFirewall" -Value 0
49-
> Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile' name "EnableFirewall" -Value 0
49+
> Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile' -name "EnableFirewall" -Value 0
5050
> Restart-Service -Name mpssvc
5151
> ```
5252
> However, as soon as the policy is applied again, you’ll be kicked out of the remote session. The permanent fix for this issue is to modify the policy that's applied on this computer.

0 commit comments

Comments
 (0)