Need to automate the deletion of a large number of messages from mailboxes and in-place archives.
$Script:objSrcSearch = Get-RMEMessage $objSrcMbx -SearchIn Attach -AttachmentOptions Present -AttachmentText "ABC" -TextCaseSensitive -TextWholeWord -ErrorAction Stop
$objSrcSearch | Delete-RMEMessage -ErrorAction Stop
This came up with a Confirm prompt.
Attempt:
Delete-RMEMessage $objSrcSearch -Confirm:$False
Other unsuccessful attempts:
Delete-RMEMessage $objSrcSearch -ErrorAction Stop
Delete-RMEMessage $objSrcSearch -Force
You need to be signed in and under a current maintenance contract to view premium knowledge articles.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center