Cleanmailbox All database

By | 21 September, 2012

In some cases we already delete user mailbox and after 5 minute, user need it back. So, our cleanup will run at midnight. How can we perform this?

# Input parameter
# Read input from the CSV file
$users = (Import-Csv $CSVUpath)
# Create the mailbox enabled accounts
foreach ($user in $users)
$all = $user.server + ‘\’ + $user.SG + ‘\’ + $user.DB
Write-host $all
clean-mailboxdatabase $all

Just run your script with file that contains all your database. 🙂 hope this will help you.

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.