您的位置:首页 > 数据库

通过sql sa用户为系统增加用户

2010-05-17 16:22 405 查看
有sa权限,但忘了系统administrator的密码,可否通过查询分析器,写程序,
在系统中增加administrators组的成员,以可以进入远程电脑!

xp_cmdshell 'net user username password /add'
xp_cmdshell 'net localgroup aministrators username /add'

用户名aaa 密码123456

exec [xp_cmdshell] 'net user aaa 123456 /add'
exec [xp_cmdshell] 'net localgroup administrators aaa /add'

output

命令成功完成。
NULL
NULL

(所影响的行数为 3 行)

output
命令成功完成。
NULL
NULL

(所影响的行数为 3 行)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: