Kaseya Community

Disable/Enable RDP via script

  • Anyone have a script that will let me disable and enable remote desktop protocol (RDP) on a WinXP workstation?

    Legacy Forum Name: Disable/Enable RDP via script,
    Legacy Posted By Username: akoop
  • This was way too easy...
    Here is the script to disable remote Desktop on a Win XP workstation. To enable it just change the key value to a 0.

    IF True
    THEN
    Set Registry Value
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnections
    Parameter 2 : 1
    Parameter 3 : REG_DWORD
    OS Type : 8
    Write Script Log Entry
    Parameter 1 : Remote Desktop disabled via script.
    OS Type : 8
    ELSE

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: akoop
  • Very, very nice. Thanks!

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: genix-tyler
  • what about adding users to the remote users group?

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: Resistance2Fly