/* ENABLE xp_cmdshell START */
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
-- ENABLE xp_cmdshell
EXEC sp_configure 'xp_cmdshell', 1
GO
--
RECONFIGURE
GO
-- check enable
Exec xp_cmdshell 'dir c:\'
/* ENABLE xp_cmdshell END */
/* DISABLE xp_cmdshell START */
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
-- DISABLE xp_cmdshell
EXEC sp_configure 'xp_cmdshell', 0
GO
--
RECONFIGURE
GO
-- check DISABLE
Exec xp_cmdshell 'dir c:\'
/* DISABLE xp_cmdshell END */
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。