Although you can manage the feature through the Settings app, you can also enable or disable Remote Desktop on Windows 10 using commands with Command Prompt or PowerShell. You may want to use this method to create a script to configure Remote Desktop on multiple computers more quickly. Or you can send the script to a user, allowing them to automatically set up the feature without additional steps. This guide will teach you the steps to use Command Prompt to enable or disable Remote Desktop and open the required firewall ports for a successful connection on Windows 10.

Enable Remote Desktop using Command Prompt Disable Remote Desktop using Command Prompt

Enable Remote Desktop using Command Prompt

To enable the remote desktop protocol with Command Prompt, use these steps: Once you complete the steps, the protocol will enable on Windows 10, and you will be able to access the device remotely.

Disable Remote Desktop using Command Prompt

To disable the remote desktop protocol with Command Prompt, use these steps: After you complete the steps, the Remote Desktop service will be disabled, and the Windows Firewall port will be closed.

We focus this guide on Command Prompt, but you can use the same commands to manage the remote desktop protocol using PowerShell. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.