King Computer Solutions

Exchange 2010 Powershell script to archive prior year emails

In the continual battle to manage user mailbox sizes here is a script which will export all the user mailboxes data for the specified date range and then removes the exported data from the mailbox.

It excludes deletion of contacts, meetings and tasks using the switch not kind:contacts not kind:meetings not kind:tasks

Create a cmd file with the command: