Skip to content

Enable Remote Desktop Using PowerShell

Enable Remote Desktop Using PowerShell

Open an elevated Windows PowerShell session and run the following commands. This first one creates the fDenyTSConnections value and sets it to 0 (off). This makes sense, because we don’t want to deny Terminal Services (TS) connections.

Set Network Level Authentication for Remote Desktop

Setting Firewall Rules :

Since you’re using Server 2012 which means PowerShell remoting is enabled.

you can throw all of this in the script block of Invoke-Command to remotely enable RDP

Sharing is caring!

Published inPowerShellWindowsWindows Server 2008Windows Server 2012Windows Server 2016

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *