0514-86177077
9:00-17:00(工作日)
以Windows Server 2012 R2為例,其實非常簡單。先啟用遠程連接:
(gwmi -class win32_terminalservicesetting -namespace "root\cimv2\terminalservices").setallowtsconnections(1)
然后再啟用幾條防火墻規(guī)則即可,用PowerShell(需要管理員權限)更顯其威武:
PS> Get-NetFirewallRule -Name RemoteDesktop* | select DisplayName,Direction,Enabled DisplayName Direction Enabled ----------- --------- ------- 遠程桌面 - 用戶模式(TCP-In) Inbound False 遠程桌面 - 用戶模式(UDP-In) Inbound False 遠程桌面 - 遠程監(jiān)控(TCP-In) Inbound False PS> Get-NetFirewallRule -Name RemoteDesktop* | Set-NetFirewallRule -Enabled true
標簽:天水 南昌 汕頭 湘潭 臨汾 襄陽 疫苗接種 喀什
上一篇:Windows Powershell 創(chuàng)建數(shù)組
下一篇:PowerShell小技巧之配置機器的靜態(tài)IP
Copyright ? 1999-2012 誠信 合法 規(guī)范的巨人網(wǎng)絡通訊始建于2005年
蘇ICP備15040257號-8