开启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

posted on 2015-06-03 15:42  中道学友  阅读(715)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上