Remotely Enable Remote Desktop


This is for those ‘oh shit’ times when you can’t get to a computer when you need to.  If you can get to the remote registry of a computer, you can change this key to allow RDP access to the computer, even if the box is not checked. 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ControlTerminal Serverf\DenyTSConnections
DWORD value: 0

Or for you Kaseya people out there.

Script Name: OH SHIT RDP ON
Script Description: Enable Remote Desktop

Script Name: rdp
Script Description: Enable Remote Desktop

IF True
THEN
   Set Registry Value
     Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ControlTerminal Serverf\DenyTSConnections
     Parameter 2 : 0
     Parameter 3 : REG_DWORD
         OS Type : 0
ELSE

If you use Kaseya you can run this script accross your network or as part of your inital setup to prevent “Oh Shit” moments in the first place. 

[ad]

, , ,

  1. No comments yet.
(will not be published)