hebedich 通过本文主要向大家介绍了远程桌面连接技巧,如何启动远程桌面连接,启动远程桌面连接,远程桌面连接,远程桌面连接命令等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
以Windows Server 2012 R2为例,其实非常简单。先启用远程连接:
(gwmi -class win32_terminalservicesetting -namespace "root\cimv2\terminalservices").setallowtsconnections(1)</div>
然后再启用几条防火墙规则即可,用PowerShell(需要管理员权限)更显其威武:
PS> Get-NetFirewallRule -Name RemoteDesktop* | select DisplayName,Direction,Enabled DisplayName Direction Enabled ----------- --------- ------- 远程桌面 - 用户模式(TCP-In) Inbound False 远程桌面 - 用户模式(UDP-In) Inbound False 远程桌面 - 远程监控(TCP-In) Inbound False PS> Get-NetFirewallRule -Name RemoteDesktop* | Set-NetFirewallRule -Enabled true</div> </div>

