D:\>netsh advfirewall firewall show rule name=all | find "Desktop" Rule Name: Remote Desktop - Shadow (TCP-In) Grouping: Remote Desktop Rule Name: Remote Desktop - User Mode (UDP-In) Grouping: Remote Desktop Rule Name: Remote Desktop - User Mode (TCP-In) Grouping: Remote Desktop
D:\>netsh advfirewall firewall show rule name="Remote Desktop - User Mode (UDP-In)" Rule Name: Remote Desktop - User Mode (UDP-In) ---------------------------------------------------------------------- Enabled: Yes Direction: In Profiles: Domain,Private,Public Grouping: Remote Desktop LocalIP: Any RemoteIP: Any Protocol: UDP LocalPort: 3389 RemotePort: Any Edge traversal: No Action: Allow Ok.
D:\>netsh advfirewall firewall set rule name="Remote Desktop - User Mode (UDP-In)" new LocalPort=3388