UI
- Regedit
- HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
- Modificare PortNumber
- Riavviare pc
PowerShell (come admin)
cambio porta regedit
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value xxxx
apertura porta firewall windows
New-NetFirewallRule -DisplayName 'RDP PORT TCP-In' -Profile 'Any'-Direction Inbound -Action Allow -Protocol TCP -LocalPort xxxx
New-NetFirewallRule -DisplayName 'RDP PORT UDP-In' -Profile 'Any'-Direction Inbound -Action Allow -Protocol UDP -LocalPort xxxx
Restart-Service TermService -ForceVerifica porta
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"
Aprire la nuova porta sul firewall aziendale e connettersi usando ip:porta
Nessun commento:
Posta un commento