Tuesday, April 3, 2012

Enable remote desktop remotely


How to enable remote desktop of a remote computer (Win xp, Win 7 )
1)  Download and install psexec. This is an offical tool from Microsoft to emulate a remote command prompt.
2)  Enter the following command to enable remote desktop in cmd
psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0



(optional)
3)   Enter these commands enable RDP traffic through the windows firewall
psexec \\remotecomputername netsh firewall set service remoteadmin enable
psexec \\remotecomputername netsh firewall set service remotedesktop enable

No comments:

Post a Comment