Useful Exchange Powershell Commands

Exchange 2007

Exchange 2007 view database sizes

List all AD users in the domain and export to CSV:

Exchange 2010

Check if database is mounted:

Check database name/server/size.

Display the existing state of the queue (exports)

Display database that the user is a member of:

Exports user ‘billybob01’ contacts folders to PST.

Updating GAL and OAB {script}:

EXCHANGE HEALTH SCRIPTS etc.

Wondering how many log files are generated per server every minute? Quickly find out by typing:

BACKUP STATUS

To see the timestamps for the last successful backups on a database, run the command below…

See all mailbox sizes in DB to CSV

If you leave out the –server switch, it will give you every DB on every server.

CONTENT INDEX

For All

To Update Content Index if not Healthy

BALANCE DATABASES ON DAGS

You can use the script to output a report of the current mailbox database distribution among the DAG members:

Use this script to balance

Check if databases are mounted:

Check Mailbox Database WhiteSpace:

Check mailbox size + dumpster size:

Message Tracing

Mr-Moo
Latest posts by Mr-Moo (see all)

Leave a Reply