首页 > 代码库 > 开3389

开3389

win08、三条命令即可。win2012通用、win7前两条即可。权限需要Administrator

wmic /namespace:\\root\cimv2\terminalservices path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1wmic /namespace:\\root\cimv2\terminalservices path win32_tsgeneralsetting where (TerminalName =‘RDP-Tcp‘) call setuserauthenticationrequired 1reg 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服务

开3389