Skip to content

Instantly share code, notes, and snippets.

@rafaelvelosoAZ
Last active June 2, 2022 14:26
Show Gist options
  • Save rafaelvelosoAZ/fc68cfa21b05cc77c08a9963a62d7f8c to your computer and use it in GitHub Desktop.
Save rafaelvelosoAZ/fc68cfa21b05cc77c08a9963a62d7f8c to your computer and use it in GitHub Desktop.
Query to enable 'xpcmdshell' on SQL Server
EXEC spconfigure 'show advanced options', '1'
RECONFIGURE
-- this enables xpcmdshell
EXEC spconfigure 'xpcmdshell', '1'
RECONFIGURE*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment