The command line interfaces, command prompt or Powershell, must run as administrator. To enable remote desktop using command line, you must have administrator permission in Windows. Before you start a connection, it’s a good idea to look up the name of the computer you’re connecting to and to make sure Remote Desktop connections are allowed through its firewall. For permission to connect, you must be on the list of remote desktop users. You must have network access to the remote computer (this could be through the Internet), and you must have permission to connect. To connect to a remote computer, that computer must be turned on it must have a network connection, Remote Desktop must be enabled. For example, you can use all of your work computer’s programs, files, and network resources from your home computer, and it’s just like you’re sitting in front of your computer at work. In Microsoft Windows operating systems, you can connect to a computer running Windows from another computer running Windows that’s connected to the same network or the Internet. You can use this method on all Microsoft Windows server and Workstation systems. Here we enable remote desktop using command prompt in Windows 10.
The Windows Remote desktop can be enable with the command line such as CMD and Powershell.