MASTER数据库执行以下语句


EXEC sp_configure 'show advanced options', 1

RECONFIGURE;

EXEC sp_configure 'xp_cmdshell', 1

RECONFIGURE