I'm looking for a way to set security layer setting in Windows Server 2008 R2 RDS via PowerShell (other ways to do in programmatically will do also but PowerShell is preferable). Via GUI it can be set through RDP-Tcp properties on General tab (SSL, Negotiata, RDS Security layers are available options), any advice on hot to change this via PowerShell?
Using the RDS: PowerShell Provider, you can do the following --
You can also find the setting under
Computer Configuration -> Policies -> Administrative templates -> Windows Components -> Terminal Services -> Terminal Server -> Security
and set it using Group Policy.