通过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 行)
在系统中增加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 行)
相关文章推荐
- 通过sql sa用户为系统增加用户
- [置顶]sql 通过作业创建系统用户
- sql 通过作业创建系统用户
- 用SQL语句增加删除系统用户
- sql 2008r2 无法连接sa用户,错误18456的处理方法
- sql server2005 只能通过windows身份验证通过 sa用户不可用
- MySQL通过增加用户实现远程连接数据库
- 97.Oracle数据库SQL开发之 用户特权和角色——系统特权
- Oracle DBA之为网页版sqlplus(iSQL*Plus)增加一个dba用户
- 帐户当前被锁定,所以用户 sa 登录失败。系统管理员无法将该帐户解锁 解决方法
- oracle 在windows系统中通过spid查找执行的sql
- 《怎样实现通过shell脚本将用户踢出系统》
- linux系统禁止root用户通过ssh登录及ssh的访问控制
- ORACLE中通过SQL语句(alter table)来增加、删除、修改字段
- 通过更改页表权限增加系统调用
- sql 2005 用户 sa 登录失败 情况总结
- sql无法打开用户默认数据库,登录失败,用户‘sa’登录失败,错误:4064的解决方法
- SQL通过角色创建只能访问指定视图的用户
- 二次开发Jumpserver,增加权限申请模块实现用户组归属,服务器及组授权,系统用户授权申请处理
- sql 2005 用户 sa 登录失败,该用户与可信SQL Server连接无关联 错误18452