Description
Disables Remote Desktop Protocol (RDP) and disables the rule allowing inbound RDP Connections through the firewall.
Overview
This script disables Remote Desktop Protocol (RDP) by setting the following registry value:
- Path: HKLM:\System\CurrentControlSet\Control\Terminal Server
- Name: fDenyTSConnections
- Value: 1
Next, the script blocks RDP through the firewall by disabling the built-in rule “Remote Desktop”.
Dependencies
- None
Operating Systems
- Windows
Pre-Requisites:
- Administrator or SYSTEM privileges.