net stop TermService /y

netsh advfirewall firewall add rule name="33950 (TCP-In)" protocol=TCP dir=in localport=33950 service=any profile=any description="For foreign Windows editions" action=allow

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t REG_DWORD /d 33950 /f

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 33950 /f

net start TermService

rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0

 

.bat

Hai trovato utile questa risposta? 394 Utenti hanno trovato utile questa risposta (1684 Voti)