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

Was this answer helpful? 394 Users Found This Useful (1684 Votes)

Powered by WHMCompleteSolution