Enable remote desktop or remote administration remotely
Solution 1
The post you linked mentioned using PSEXEC from the Sysinternals Suite. Assuming you have valid admin credentials for the remote machine and can talk to it over the network, then it should work fine for running commands and applications on the machine.
Another post shows how to edit the required registry key via the command line. You can use PSEXEC to run that command on the remote computer. This would look like:
psexec \\<computer name or ip address> -u <username> -p <password> reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
The remote PC will need to be rebooted too, as always PSEXEC can handle that too:
psexec \\<computer name or ip address> -u <username> -p <password> shutdown -r -t 0
Solution 2
Try (from elevated command prompt)
reg add \\<MachineName>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
Or
Start --> Run --> regedit --> OK
Connect Network Registry option under the File menu
Browse Active Directory to locate the remote server
Now browse HKLM on to find the following Registry key
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
Under the Terminal Server key, you'll find a REG_DWORD value named
fDenyTSConnection
. Double-click on that value to open the Edit DWORD Value box and change the value data from 1 (Remote Desktop disabled) to 0 (Remote Desktop enabled)
Related videos on Youtube
Nick
Updated on September 18, 2022Comments
-
Nick over 1 year
I recently reformatted one of my computers and had forgotten to turn on Remote Desktop. Now I am trying to grab some files off that computer, but I have no way of accessing it. I have an administrative account and can access the local network (remote desktop another computer that is on the network), but I can't figure out how too enable remote desktop or administration.
I found this post promising, but since remote administration wasn't on I wasn't able to enable Remote Desktop.
How can I enable Remote Desktop on a Windows 8 computer from another Windows 7 computer on the same local network?
-
Brad Patton about 11 yearsSeems like it would be a security risk if it was possible.
-
Nick about 11 yearsYes, I agree. I was just thinking if I have the user name and password maybe that could be used to verify the person.
-
MattDMo about 11 yearsIt's a Catch-22 - you need remote desktop to turn on remote desktop. Unless you have an
ssh
server running, you'll need physical access to the machine...
-
-
Kinnectus almost 10 yearsDo you even need to do all the PSEXEC stuff? We've had experience that you can open
regedit
from your Windows 7 machine -> clickFile
->Connect Network Registry...
. This should then allow you to connect to the remote computer's registry to browse to the required key as above? -
Windos almost 10 years@BigChris you could indeed, there is a few caveats though the biggest one being that you need to be logged in as a user that is an admin on both computers. This isn't a massive deal in a domain environment (at least not where I work), but could be a hurdle in a workgroup environment. Using
psexe
, you specify the credentials for the remote machine so you don't need to worry about the account you use on your end. Also doing it from the command line make it easily script/loop-able to do a number of machines at the same time (or in sequence.) -
user1696603 almost 6 yearsOne might also need to add firewall rules, see my other answer (which you're welcome to crib from and fold into this one @Windos).