1. 首页
  2. 红队技术

命令行强制开启3389服务支持server2008 server2012和2003

1.C:\Windows\System32\wbem\wmic /namespace:\root\cimv2\terminalservices path win32_terminalservicesetting where (__CLASS != “”) call setallowtsconnections 1
2.C:\Windows\System32\wbem\wmic /namespace:\root\cimv2\terminalservices path win32_tsgeneralsetting where (TerminalName =’RDP-Tcp’) call setuserauthenticationrequired 1
3.reg add “HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fSingleSessionPerUser /t REG_DWORD /d 0 /f

4.net start TermService

C:\Windows\System32\wbem\wmic
win03 winxp 一条命令即可:

wmic path win32_terminalservicesetting where (__CLASS != “”) call setallowtsconnections 1

命令行强制开启3389服务支持server2008 server2012和2003

原创文章,作者:moonsec,如若转载,请注明出处:https://www.moonsec.com/archives/3058

联系我们

400-800-8888

在线咨询:点击这里给我发消息

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息