I try to purge the queues in SDL Tridion with help of powershell. I want to run this scripted without GUI invention. But I can't figure out how I can get rid of the Confirm question.
PS C:\Users\frsu10e1> Remove-TcmQueueMessages -Confirm Confirm Are you sure you want to perform this action? Performing operation "Remove-TcmQueueMessages" on Target "PublishQueue, DeployQueue, SearchQueue, WorkflowAgentQueue, BatchQueue". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
I can't figure out what to pass to the -Confirm parameter. It doesn't matter if I specify all queues (default) or just one or two. Any ideas?