Search notes:

SQL Server: xp_cmdshell

SQL Server blocked access to procedure 'sys.xp_cmdshell'

When trying to execute xp_cmdshell, SQL Server might response with
SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned off as part of the security configuration for this server.
This feature can be enambled with
sp_configure 'xp_cmdshell', 1
reconfigure

See also

sp_xp_cmdshell_proxy_account

Index