![]() To enable a rule, open the following registry value: Open the TARGET MACHINE\SYSTEM branch, and then specify the following values: On the troubleshooting VM, start Registry Editor (regedit.exe), and then select File > Connect Network Registry. If the VM is online and can be accessed on another VM on the same virtual network, you can use Remote Registry on the other VM. Netsh advfirewall firewall set rule dir=in name="Remote Desktop - User Mode (TCP-In)" new enable=no Netsh advfirewall firewall set rule dir=in name="Remote Desktop - User Mode (TCP-In)" new enable=yes Open a CMD instance, and access the VM through its Internal IP (DIP). On the troubleshooting VM, download PSTools. To disable a rule: Enter-PSSession (New-PSSession -ComputerName "" -Credential (Get-Credential) -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck))ĭisable-NetFirewallRule -DisplayName "RemoteDesktop-UserMode-In-TCP" To enable a rule: Enter-PSSession (New-PSSession -ComputerName "" -Credential (Get-Credential) -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck))Įnable-NetFirewallRule -DisplayName "RemoteDesktop-UserMode-In-TCP" Run the following commands, as appropriate. On the troubleshooting VM, open a PowerShell console window. If the VM is online and can be accessed on another VM on the same virtual network, you can make the follow mitigations by using the other VM. Upload this script in the Azure portal using the Custom Script Extension feature. To disable a rule: netsh advfirewall firewall set rule dir=in name="Remote Desktop - User Mode (TCP-In)" new enable=no To enable a rule: netsh advfirewall firewall set rule dir=in name="Remote Desktop - User Mode (TCP-In)" new enable=yes ![]() Online troubleshooting Mitigation 1: Custom Script ExtensionĬreate your script by using the following template. ![]() However, the same methods can be applied to any other kind of traffic by pointing to the correct registry key. How you configure the firewall rules depends on the level of access to the VM that’s required. If a change was deliberately made to the firewall that caused RDP connections to fail, using the Custom Script Extension feature can resolve the issue.ĭisabling all firewall profiles is a more foolproof way of troubleshooting than setting the RDP-specific firewall rule. This could be useful for the following reasons: This article provides a reference for troubleshooting a situation in which you suspect that the guest operating system firewall is filtering partial traffic on a virtual machine (VM).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |