Step 1: Open Command Prompt as Administrator
Win + X
on your keyboard.Step 2: Enable Remote Desktop
In the Command Prompt window, run the following commands:
:: Enable Remote Desktop
reg add "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
:: Allow Remote Desktop through Windows Firewall
netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes
Step 3: Create a Firewall Rule (if needed)
If the "Remote Desktop" rule doesn't exist, create it with the following command:
:: Create a firewall rule to allow RDP traffic
netsh advfirewall firewall add rule name="Remote Desktop" dir=in action=allow protocol=TCP localport=3389
Step 4: Add the User "fcastle" to Allow RDP Access
Replace <username>
with the actual username "fcastle" in the following command:
:: Add the user "fcastle" to allow RDP access
net localgroup "Remote Desktop Users" /add fcastle
Step 5: Start the Remote Desktop Service
Start the Remote Desktop Service with the following command:
:: Start the Remote Desktop Service
net start TermService
That's it! RDP should now be enabled on your Windows 10 computer for the user "fcastle." You can access this computer via RDP using the computer's IP address or hostname from another machine, provided you have the necessary credentials (username and password) for the "fcastle" account.