scripting

Add ManagedBy settings in Powershell

I just created 300 new distribution lists on our mixed Exchange environment. These new DLs, all needed a manager assigned to them.

The script below requires/uses cmdlets from the Microsoft Exchange 2007 Shell. For one that doesn't need them, check out Brandon's blog.

Add a row to an existing CSV

I am working on a script to capture key bits of server information from a large list of servers. With each server, I'd like to graph trending data from each server (drive usage, memory usage, etc.). With this I need a place to store the data after each run of the script, opting for storing the output into a CSV file (especially considering the ease of use of the Import/export csv functions in powerhsell).

PowerShell - Enumerate SENDAS Permissions on all mailboxes

We are working on a security review of our Exchange environment. Part of that is to review who has permissions to access what mailboxes.

That's why I put together this little script. Using the Exchange 2007 Management shell, it reads our Exchange 2003 and 2007 environments, processing all the mailboxes. It outputs a single CSV file containing each instance where someone else (not SELF and not a SID) has permissions to a mailbox.

Are you preparing for the 2008 Games?

If you've read my site for any time, you know that I am a big-time scripter. I look for scripted solutions to most common problems that I have to deal with first. Touch 1,200 accounts by hand? Write a script? Hmmm.. If I cannot find a viable (scripted) solution within 15 minutes of googling, then I might ping a friend or co-worker and see if they've done something similar, but likely go for the manual method.