How to Enable Remote Desktop Remotely using PowerShell Command?

Problem: If you want to RDP to a remote server but some didn’t enable RDP on the remote server? You can enable Remote Desktop via group policy and wait a while or you can do it with a simple PowerShell command which not only enables Remote Desktop but also allow RDP on the Windows firewall.

Execute the following PowerShell command to enable Remote Desktop on the remote computer:

Install-Module Enable-RemoteDesktop
Enable-RemoteDesktop -Target {Computer-name}

How to Enable Remote Desktop Remotely using PowerShell Command?
How to Enable Remote Desktop Remotely using PowerShell Command?