The following script can be used to enable xp_cmdshell
EXECUTE SP_CONFIGURE 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
EXECUTE SP_CONFIGURE 'xp_cmdshell', '1'
RECONFIGURE WITH OVERRIDE
GO
EXECUTE SP_CONFIGURE 'show advanced options',
0
RECONFIGURE WITH OVERRIDE
GO
No comments:
Post a Comment