
Enabling Remote Desktop on Windows Server Core
Enable Remote Desktop (RDP) on Windows Server Core from the command line.
1 min read
Contents
Enabling RDP
Microsoft ships a script with Windows Server Core that modifies the registry entry fDenyTSConnections and can thereby allow or deny Remote Desktop connections. The /ar parameter specifies the value fDenyTSConnections gets (0 = allow, 1 = deny):
cscript.exe "%windir%\system32\SCRegEdit.wsf /ar 0"
Setting the firewall rule
If Windows Firewall is active, you also have to enable the “Remote Administration” rule:
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
Source
- MS TechNet: Using Remote Desktop