我正在寻找一种方法来设置安全层设置在Windows Server 2008 R2 RDS通过PowerShell(其他方式以编程方式也将做,但PowerShell更可取)。 通过GUI可以通过常规选项卡上的RDP-Tcp属性来设置(SSL,Negotiata,RDS安全层是可用的选项),热的任何build议通过PowerShell来改变这个?
使用RDS:PowerShell提供程序,您可以执行以下操作 –
Import-Module RemoteDesktopServices Set-Location RDS:\RDSConfiguration\Connections\RDP-Tcp\SecuritySettings # Choose One of the following Set-Item .\SecurityLayer 0 # Sets it to RDP Security Layer Set-Item .\SecurityLayer 1 # Sets it to Negotiate Set-Item .\SecurityLayer 2 # Sets it to SSL (TLS 1.0)
您还可以在Computer Configuration -> Policies -> Administrative templates -> Windows Components -> Terminal Services -> Terminal Server -> Security下find该设置,并使用组策略进行设置。