Minimum ITScripts engine version required: 188.8.131.52
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: 184.108.40.206
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."