MSPURGE utility examples
Document ID: 10196
Synopsis
The MSPURGE utility allows you to mange unused or inactive mailboxes. A few examples of how to use the MSPURGE utility are given in this document.
More Information
MSPURGE utility examples
The MSPURGE utility allows you to mange unused or inactive mailboxes.
A few examples of how to use the MSPURGE utility are given in this document.
The below command will bring up a list of mailboxes which have not been used and ones that have not been logged into within the past 90 days:
The above command runs in a simulation mode. You will need to append -commit to the command to execute.
An unused mailbox is an mailbox which has never been logging into since creation. If a SMTP, POP or IMAP login is made using a mailbox then it is no longer be counted as an unused mailbox.
If no -age argument is provided then 365 is the assumed value. Mailboxes which have forwards or auto replies will not be flagged up.
The following command will delete all Registry mailboxes (in the vd.com domain) which have not been accessed in the last 30 days and also mailboxes which have Forwards placed on them:
mspurge -domain * -age 90 -unusedmailboxes
The above command runs in a simulation mode. You will need to append -commit to the command to execute.
An unused mailbox is an mailbox which has never been logging into since creation. If a SMTP, POP or IMAP login is made using a mailbox then it is no longer be counted as an unused mailbox.
If no -age argument is provided then 365 is the assumed value. Mailboxes which have forwards or auto replies will not be flagged up.
The following command will delete all Registry mailboxes (in the vd.com domain) which have not been accessed in the last 30 days and also mailboxes which have Forwards placed on them:
mspurge -domain vd.com -plugin 0 -age 30 -deleteforwards
You can replace the -plugin argument with the following:
0 - Registry Mailboxes/SQL Mailboxes (requires SP license)
1 - NT Mailboxes
2 - Database Mailboxes
For further help details on the usage for MSPURGE, please see the MailSite helpfile.