Welcome to MSDN Blogs Sign in | Join | Help

Tony Schreiner's WebLog

Developer - IE | Windows | Graphics. Fighting complexity for 10 years and counting.

Syndication

Enabling Remote Desktop, remotely

Let's say you're in a situation where you can't log into your XP machine because you forgot to click that checkbox. psexec to the rescue!

psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0

I shouldn't have to say that this isn't in any way supported, or that it's not going to work if you're not already an admin on the machine that has RD access, or that a firewall will get in the way, or that there may be better ways to do it using script or WMI, but I've found it useful on a couple occasions.

Published Monday, April 19, 2004 2:34 PM by tonyschr

Filed under:

Comments

# re: Enabling Remote Desktop, remotely @ Monday, April 19, 2004 5:29 PM

You can execute reg.exe against a remote machine directly, and skip psexec:

reg add \\machinename\hklm\...

Brian Desmond

# Enabling Remote Desktop Remotely! @ Monday, April 19, 2004 10:50 PM

Tech Guru

# re: Enabling Remote Desktop, remotely @ Monday, April 19, 2004 8:45 PM

Ah, thanks Brian. I never knew that capability existed in reg.exe.

Tony Schreiner

# psexec: Remotely Execute Processes @ Tuesday, April 20, 2004 4:18 AM

William.Blog()

# Enabling Remote Desktop Remotely! @ Tuesday, April 20, 2004 7:49 AM

RoudyBob.NET

# Enable Remote Desktop remotely (via registry) @ Tuesday, April 20, 2004 1:04 PM

Michael Teper

# Enabling Remote Desktop, remotely @ Wednesday, January 26, 2005 5:11 AM

TrackBack

# my blog » Blog Archive » enabling remote desktop :D @ Sunday, February 19, 2006 12:28 AM

PingBack from http://appi101.wordpress.com/2006/02/02/enabling-remote-desktop-d/

my blog » Blog Archive » enabling remote desktop :D

# Enabling Remote Desktop remotely @ Thursday, April 13, 2006 6:33 PM

Ran into a situation where I needed to get remote desktop access to a machine where I hadn't previously...

Jeremy Kuhne's Blog

# Geoff @ UVM - Oops. Forgot to enable RDP! @ Monday, November 10, 2008 3:19 PM

PingBack from http://www.uvm.edu/~gcd/?p=114

Geoff @ UVM - Oops. Forgot to enable RDP!

# Remote Desktop Sharing | keyongtech @ Thursday, January 22, 2009 2:56 AM

PingBack from http://www.keyongtech.com/1944482-remote-desktop-sharing

Remote Desktop Sharing | keyongtech

New Comments to this post are disabled
Page view tracker