标签:blog io sp on div log cti ad as
win08、三条命令即可。win2012通用、win7前两条即可。权限需要Administrator
wmic /namespace:\\root\cimv2\terminalservices path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1 wmic /namespace:\\root\cimv2\terminalservices path win32_tsgeneralsetting where (TerminalName =‘RDP-Tcp‘) call setuserauthenticationrequired 1 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f
03和XP
wmic path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1
据说可以通用
wmic RDTOGGLE WHERE ServerName=‘%COMPUTERNAME%‘ call SetAllowTSConnections 1
以上方法均需要服务器开始WMI服务
标签:blog io sp on div log cti ad as
原文地址:http://www.cnblogs.com/hackxt/p/4127267.html