In this post I will explain how we can enable Microsoft remote desktop on a Windows computer remotely without having physical access to that computer.
Before I start, I want to introduce a powerful tool PS Tools of Microsoft created by Sysinternals. By using these tools we can remotely execute commands and processes on a remote computer.
We can do it in LAN as well as on the internet also.
For downloading and then how to use this tool. First have a look at this post. Executing commands on Remote Computer.
After downloading and extracting navigate command prompt to the directory where you have extracted the files.
First enable remote desktop by entering the following registry key. Replace PC-001 with the remote computer name or the IP address.
psexec \\PC-001 reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
Then enable remote admin by the following command.
psexec \\PC-001 netsh firewall set service remoteadmin enable
And then last start remote desktop service.
psexec \\PC-001 netsh firewall set service remotedesktop enable
And you are done.
Now access the remote desktop via Microsoft remote desktop client and login with the administrator user.
After that give remote access to other users of that computer. You can do it by accessing remote settings in my computer’s properties.
Note – If you are in the same domain network then run the command prompt as an administrator of that domain. If not then use the commands in the following manner. Replace username by administrator username and password by the password for the user of the remote computer.
psexec \\PC-001 -u username -p password reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
Thanks for reading the post for remotely enable remote desktop services on Windows OS.
If you want to learn more about PS Tools then go to official website. PS Tools