Mssql开启与关闭xp_cmdshell

开启 

EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;

 

 

 

关闭一样.只是将上面的后面的那个"1"改成"0"就可以了.

  
EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 0;RECONFIGURE;

posted @ 2017-09-12 09:19  航子er  阅读(1393)  评论(0编辑  收藏  举报