Files
FAT_Test/Unencrypted PS and Json files/20260515/PS/Remote Desktop Enable.ps1
2026-05-15 16:26:08 -06:00

10 lines
385 B
PowerShell

# Enable Remote Desktop
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" -Value 0
# Enable Remote Desktop through Windows Firewall
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# Allow "Everyone" group to connect
$rdpAccessGroup = "Remote Desktop Users"
Add-LocalGroupMember -Group $rdpAccessGroup -Member "Everyone"