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

Saturday, November 27, 2010

Disable USB drive

To disable USB drive in windows .
  1. Open Run > type 'regedit' 
  2. Got to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor.
  3. double click on Start value.
  4. Change the value data to 4 to disable the removable USB mass storage device drive access. 
  5. To revert and re-enable the drive access for removable USB mass storage device driver, change back the value data for Start to its original default of 3.