Remote Desktop Protocol is a proprietary protocol developed by [[Microsoft]] which provides a user with a graphical interface to connect to another computer over a network connection.
# Enable RDP with PowerShell
```PowerShell
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
```
Allow RDP through Microsoft Defender Firewall
```PowerShell
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
```
Add user to the "remote desktop users" local security group to allow them to use RDP.
```PowerShell
net localgroup "Remote Desktop Users" "[username]" /add
```
# Enable RDP with CMD
1. Enable Remote Desktop
```bash
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
```
2. Allow Remote Desktop through Windows Firewall
```bash
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
```
3. Add local user to "Remote Desktop Users" local group.
```bash
net localgroup "Remote Desktop Users" "[username]" /add
```