Reboot your computer or restart your Remote Desktop service with this command: net stop termservice & net start termservice.New-NetFirewallRule -DisplayName "NewRDPPort-UDP-In" -Direction Inbound -LocalPort 1350 -Protocol UDP -Action allow You can create an allowing inbound rule for your new TCP/UDP RDP port manually in the Windows Defender Firewall console ( firewall.cpl) or using PowerShell cmdlets from the NetSecurity module: New-NetFirewallRule -DisplayName "NewRDPPort-TCP-In" -Direction Inbound -LocalPort 1350 -Protocol TCP -Action allow.If you are reconfiguring a remote Windows host via RDP, make sure you create allow rules in the firewall before restarting TermService, otherwise, you will lose access to the server If Windows Firewall is enabled on your computer, you will have to create a new rule that allows inbound connection to your new RDP port.You can change the registry parameter using PowerShell: Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\" -Name PortNumber -Value 1350
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |