有些系统需要先启动权限,执行以下命令:

 

sp_configure 'show advanced options',1

reconfigure

go

sp_configure 'xp_cmdshell',1

reconfigure

go

 

执行存储过程的语句:

exec xp_cmdshell 'shutdown -a'

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-13
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案