Have a machine you want to connect to, but remote desktop isn’t enabled? As long as you have administrator access to that machine you can enable remote desktop very easily from another machine on the same network. Just use Regedit and connect to the remote machine’s registry and make one change.
Change Dword value: hklm/ system/ currentcontrolset/ control/ terminal server/ fDenyTSConnections from 1 to 0
Of course you can do this from the command line if you have PSExec:
psexec \\computername/ipip reg add “hklm\system\currentcontrolset\control\terminal server” /f /v fDenyTSConnections /t REG_DWORD /d 0
You should also be able to do this with WMI:
wmic /node:”FQDN Name” RDTOGGLE WHERE ServerName=”HostName” CALL SetAllowTSConnections 1
For XP you may need to do this instead:
wmic /node:”HOSTNAME” path win32_terminalservicesetting where servername=”HOSTNAME” call SetAllowTSConnections 1
You can connect to the “console 0″ session from a command line:
mstsc /v:x.x.x.x /console – for rdp clients before v5
mstsc /v:x.x.x.x /admin – for rdp clients v6 or higher