You must have System Administrator user rights to drop the xp_cmdshell stored procedure. To drop the stored procedure, type the following command at a command prompt:
exec sp_dropextendedproc 'xp_cmdshell'
To re-add the xp_cmdshell stored procedure, type the following command at a command prompt:
exec sp_addextendedproc 'xp_cmdshell', 'xplog70.dll'