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

Cette réponse était-elle pertinente? 394 Utilisateurs l'ont trouvée utile (1684 Votes)

Powered by WHMCompleteSolution