Hi there,
You can try out these approaches ,
- In computer management, go to the security properties of the queue, take ownership through the Advanced button, and set permissions to what you want.
- Find the queue config file in the system32\msmq\storage\lqs directory and delete the file; the queue name will be inside the file you want. When you restart the MSMQ service, the queue will have disappeared.
The Clear-MsmqQueue cmdlet clears queues. Specify queues to clear by using MessageQueue objects. This cmdlet returns a MessageQueue object that represents the cleared outgoing queue.
PS C:\> Get-MsmqQueue -Name "Order*" | Clear-MsmqQueue
--If the reply is helpful, please Upvote and Accept it as an answer--