开启Remote Desktop的PowerShell
1) Enable Remote Desktop
set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
2) 在firewall允许RDP进入
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
3) 关闭 secure RDP authentication
set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 0
来源
===============
How to enable Remote Desktop remotely using Powershell
http://networkerslog.blogspot.com/2013/09/how-to-enable-remote-desktop-remotely.html