Enable Remote Desktop Using PowerShell

0
306
views

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!

LEAVE A REPLY

Please enter your comment!
Please enter your name here