Search-Mailbox –confirm:$false don't work

Hello,

I don't want the prompt for confirm yes or not to delete.

My command is:

Search-Mailbox identity user one SearchQuery kind:contacts -DeleteContent -confirm:$false 

But always i have the confirmation.

Thx for your help.

August 7th, 2015 4:10am

Hi,

Use -Force switch too

The Force switch overrides the confirmation prompt displayed when your use the DeleteContent switch to permanently delete messages.

Free Windows Admin Tool Kit Click here and download it now
August 7th, 2015 4:42am

thx a lot !
August 7th, 2015 4:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics