- Posts: 181
- Thank you received: 0
Reg.exe And Remote Desktop
18 years 11 months ago #11837
by ping
The greatest pleasure in life is doing what people say you can not do..!!
Reg.exe And Remote Desktop was created 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..
~Pranav
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..
~Pranav
The greatest pleasure in life is doing what people say you can not do..!!
18 years 11 months ago #11844
by DaLight
Replied by DaLight on topic Re: Reg.exe And Remote Desktop
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.117 seconds