Skip to main content

Reg.exe And Remote Desktop

More
18 years 11 months ago #11837 by ping
Hello all,

Last week i was doing something and i needed to trun on remote desktop from remote location on windows server 2003.After way too much googling I finally came up with the reg.exe command. This allows you to modify the registry from the command line. It is built into server 2003 and XP, but will work on win 2000 also if you can get the program onto the server/workstation.

To turn on remote desktop, just issue this command.

reg.exe ADD "HKEY_LOCAL_Machine\System\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0x0 /f

0x1 = turns it back off

The nice thing about this is once you edit the registry key server 2003 and XP automatically turns on remote desktop, no need to mess with trying to restart Terminal Services.

Hope some people find this usefull, I know I have.

Cheers.. :D

~Pranav

The greatest pleasure in life is doing what people say you can not do..!!
More
18 years 11 months ago #11840 by TheBishop
Replied by TheBishop on topic Reg
Hey that's nice ping! Thanks for that
More
18 years 11 months ago #11844 by DaLight
Excellent! I'll file that away. Obviously I presume you're using something like Sysinternal's PsExec to run the program remotely.
Time to create page: 0.116 seconds