Link to home
Start Free TrialLog in
Avatar of Chrissycan
Chrissycan

asked on

Change RDP Listening Port from command Line

Hi.
I want to change the RDP Listening port on a number  of Windows XP Pro PC's from the command line. I know the key to be changed is:-HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-TCP\PortNumber but need to use one of the registry edititing utilities such as Regfind or regini. Have tried but cannot figure out the exact syntax. Any help appreciated...
SOLUTION
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arshana
arshana

REG ADD HKLM\system\CurrentControlSet\Control\TerminalServer\winstations\rdp-tcp /v PortNumber /t REG_DWORD /d 0xd3e
Avatar of Chrissycan

ASKER

Thanks both...
Arshama I think your answer is simple and what I am looking for but when I run it I get an error saying "to many command line parameters". Also I think I need a space between "Terminal" and "Server".  Any further ideas?.
You are getting the  error because you are using the space. You dont have to use the space between the Terminal Server
Thanks again...
If I leave the space out it creates another key "TerminalServer" at the same level as "Terminal Server".

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thats it working...Thanks to all...Hope the points have been awarded fairly...
ThanQ