spannerk
asked on
New-ComplianceSearchAction doesn't seem to do anything
Hi
We’re migrating a customer to office 365, and unfortunately it’s migrated archive stubs from enterprise vault over. I don’t have time to clear 365 and remigrate everything without the stubs so I’m trying to clear them in office 365 using security and compliance and other methods
So what I’ve tried is using content search to do a query across the customers 365 site for “itemclass:IPM.Note.Enterp riseVault. Shortcut*”
This brings back the expected results I want. (hundreds of thousands of results)
I then connect to security/compliance powershell, and try the command
New-ComplianceSearchAction -SearchName "content search name" -Purge -PurgeType SoftDelete
This says it completes.
But what I’m finding is that it seems to delete only a handful of items, eg, If I open a users mailbox, go to recover deleted items, I’ll see 10 or so items that are archive stubs.
But otherwise their mailbox is full of stubs still that I would expect to be deleted.
The notes for New-ComplianceSearchAction state unindexed items wont be deleted, but majority of the search items are indexed, so I can’t see why it hasn’t worked.
I've also tried using a script like this https://gallery.technet.microsoft.com/office/Removing-Messages-by-e0f21615#content for removing messages. This also says it's removed a large number of messages, but when I check the mailbox, nothing seems to be deleted.
Is there some reason why all these actions which should be deleting the stubs aren't?
Thanks.
We’re migrating a customer to office 365, and unfortunately it’s migrated archive stubs from enterprise vault over. I don’t have time to clear 365 and remigrate everything without the stubs so I’m trying to clear them in office 365 using security and compliance and other methods
So what I’ve tried is using content search to do a query across the customers 365 site for “itemclass:IPM.Note.Enterp
This brings back the expected results I want. (hundreds of thousands of results)
I then connect to security/compliance powershell, and try the command
New-ComplianceSearchAction
This says it completes.
But what I’m finding is that it seems to delete only a handful of items, eg, If I open a users mailbox, go to recover deleted items, I’ll see 10 or so items that are archive stubs.
But otherwise their mailbox is full of stubs still that I would expect to be deleted.
The notes for New-ComplianceSearchAction
I've also tried using a script like this https://gallery.technet.microsoft.com/office/Removing-Messages-by-e0f21615#content for removing messages. This also says it's removed a large number of messages, but when I check the mailbox, nothing seems to be deleted.
Is there some reason why all these actions which should be deleting the stubs aren't?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.