[PS] C:\Windows\system32>Get-mailbox -Identity "ashish"| add-mailboxpermission -user administrator -AccessRights FullAccess
[PS] C:\Windows\system32>Get-Mailbox -Identity ashish |Search-Mailbox -DeleteContent -Force
RunspaceId : b5559ccf-f8d6-4ef5-8a16-49f21b3de911
Identity : ashish.in/Disabled Account/Ashish [Corporate]
TargetMailbox :
TargetPSTFile :
Success : True
TargetFolder :
ResultItemsCount : 238
ResultItemsSize : 79.7 MB (83,567,493 bytes)
2.Get-Mailbox -Identity ashish | Search-Mailbox -ContentFilter {Size -gt 1024KB} -and {((Received -lt ’12/06/2010) -and (Received -ge ’01/01/2013')) -DeleteContent -force
3.Get-Mailbox -Identity ashish -Archive |Search-Mailbox -DeleteContent -Force
(with this command both inbox and archive mail will be delete)
No comments:
Post a Comment