Activate and deactivate Remote Desktop via command line!
It's easy to enable and disable Remote Desktop from the command line on MS Windows 11, 10, ... etc. and Server OS!
The remote desktop can be turned off, deactivated or activated under all Windows operating systems, especially in areas where the remote desktop could pose a security risk, the remote desktop is often deactivated, not only on Windows 11, 10, 8.1, ... but also under MS Server 2019, 2016, it can also be done in a few seconds!
PS:
Once you have completed the steps, you can use the modern Remote Desktop app, or the old Remote Desktop Connection app, to access your computer remotely even when the firewall is activated.
The range of commands and the options are the main difference between PowerShell and the command prompt on Windows 11, 10, and MS Server OS The MS PowerShell