Eileen's Technology blog

Blogging and Evangelising about Technology and Social Media

Archive for May 22nd, 2008

Simple and effective PowerShell scripts for Exchange

Posted by eileenb on May 22, 2008

Jonathan, who had really horrible problems with Exchange earlier this year told me about some powershell cmdlets that he used to help him troubleshoot his problems.  He’s kindly shared some of his cmdlets with me

The first one is the one-liner he wrote to help him out of the “Incredible Growing Logs” problem, which lists out the users connected to a particular mailbox store and which client they’re using (Outlook versions or HTTP for OWA)

A one line script which checks the free disk space on every logical local drive on every computer in a specific OU:

The PowerShell that they use the most at the university is this script, which returns some mailbox details, including SMTP addresses, quota and usage for a user on Exchange 2003 or 2007:

The last Exchange-related PowerShell stuff is entitled “How much space are orphaned mailboxes taking up on my Exchange servers?” and does what it says on the tin.

He says:

I don’t claim to write the best or most robust PowerShell, but from the little feedback that I’ve had, those posts have been useful enough to some people that they were worth writing! :-)

Jonathan – these scripts seem pretty useful to me and should be part of every Exchange Administrators toolkit – that’s why I’m telling you about it…

Posted in Exchange, collaboration | Comments Off