Shavlik: Disable Remote Desktop (RDP)

Version 4

    Author: Shavlik

    Category: Configuration

    Inputs: None

    Minimum ITScripts engine version required: 8.0.0.0

    Modifies the target machine: Yes

    Name: Disable Remote Desktop (RDP)

    Outputs: An appropriate message indicating if the operation was successful or not is displayed.

    Purpose: Allows administrators to disable Remote Desktop (RDP)

    Script Version: 1.0.0.3

    Target Type: Any

     

    Technical Description:

    This script connects to the target system via WMI.  Accessing the Win32_TerminalServiceSetting class, it sets the AllowTSConnections field accordingly to disable RDP without requiring a reboot.

     

     

    Possible OpsMon results include:

    "Remote desktop has been disabled."

    "Remote desktop is already disabled.  No changes were made."

    "Unable to access the WMI services for remote desktop."

    "WMI connection to the target machine failed.  The machine may be offline or firewalled."