Wednesday 29 February 2012

Enable xp_cmdshell

<><><><>
Enable the xp_cmdshell
---------------------------
use master
EXEC master.dbo.sp_configure 'show advanced options', 1
Go
RECONFIGURE with override
Go
EXEC master.dbo.sp_configure 'xp_cmdshell', 1
Go
RECONFIGURE with override
Go
EXEC master.dbo.sp_configure 'show advanced options', 0
Go
RECONFIGURE with override
---------------------------

No comments:

Post a Comment