MSSQL Enable xp_cmdshell

Execute a query with a sysadmin grant user.

 

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

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.