/* EXEC sp_configure ‘allow updates’, 0 RECONFIGURE */ -- 启用: exec sp_configure ‘show advanced options‘,1 reconfigure exec sp_configure ‘xp_cmdshell‘,1 reconfigure --关闭: exec sp_configure ‘xp_cmdshell‘,0 reconfigure exec sp_configure ‘show advanced options‘,0 reconfigure select * from sysconfigures where comment like ‘%show advanced options%‘ or comment like ‘%shell%‘
xp_cmdshell 命令的开启与关闭,和状态查询,布布扣,bubuko.com
时间: 2024-10-19 16:19:04