• How do you have the execution context of the xp_cmdshell set up? Are you using a proxy or is it running in the context of the SQLServer service user (generally a domain user but could be a local user) The default is system or network and that may not have permissions to see semaphores.

    The probability of survival is inversely proportional to the angle of arrival.