Minimum ITScripts engine version required: 22.214.171.124
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: 126.96.36.199
Target Type: Any
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."