Friday, August 5, 2011

Remote enable Remote Desktop

This example show how you can use PsExec for enable Remote Desktop remotely

Enable RDP:

PsExec.exe \\remotepc  reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0

 

Enable RDP through firewall:

PsExec.exe \\remotepc netsh firewall set service remoteadmin enable

PsExec.exe \\remotepc netsh firewall set service remotedesktop enable

No comments: