Active Directory

Exchange 2007 User Prep

I have been working on figuring out how to move our 20,000 mailboxes to an Exchange 2007 environment. The following script is one of the first steps. This script goes through each mail-enabled user account and tags one of the extensionAttributes with a number 1-number of mail stores I will end up with.

Disk Stat Reporting

Here at the university we use Perfmon alerts to alert us when Windows server hard disks are dangerously close to filling up. Sometimes, it’s nice get an idea of what the hard disks are at, looking to see if any disks are getting close to running out of space without getting an alarm in the middle of the night.

Email Forwarding Stats

I had the opportunity to write a quick script to query Active Directory for accounts that were forwarded and store those forwarded email addresses in a MySQL database to run a couple of reports against. This was pretty fun for me. I’ve attached the C# source code. I used the MySQL db driver located here.