I agree that xp_cmdshell shouldn't even be enabled. However, I just joined this company and it is enabled on multiple servers. So now, I would like to be able to audit its use in some way to see if it even needs to be enabled.
Is there any way you can create an auditing method? Server side trace, trigger, service broker, etc. and see what command is being issued to it?
Owner & Principal SQL Server Consultant
Im Your DBA, Inc.
https://www.imyourdba.com/