Vivek has been doing a lot of work to spread the word on the Exchange Management Shell and the wiki has A LOT of stuff as well (thanks to Vivek….go enjoy the best part of Seattle summer). I have noticed more people contributing to the effort of teaching the way of the shell and individual commands. This is all good as it takes some time to get used to the new format and nomenclature. Personally I am still a bit behind, there was the big warning on the beta 1 monad staid this is going to change by RTM so I didn’t do as much as I should have to learn it, of course it hasn’t changed that much but I am still behind :(
Today I saw Ben Winzenz’s great EMS post along with all the others and was inspired by ProBlogger‘s group writing project. So I would like to invite everyone to put up a post or comment on this post with a unique Exchange 2007 powershell script (sorry no prizes unless Manning Publications wants to sponsor it with a free copy of Bruce Payette‘s book). I have created a new tag that we can file them under so they will be easily searchable, “How To: Exchange Management Shell”. When your post is up, send me a link and I will combine all the posts that come in next week and post The List first thing in September
UPDATE 08/26 9:00am: Jeffrey Snover is willing to pitch in a signed copy of Bruce’s Book as a raffle type prize for this. If anyone else has a great prize, book, powershell shirt, etc, I will be happy to raffle them off to the list as well. Again, to officially enter (now that there is a prize), send me an email with a link to your post josh . maher at gmail dot com OR put the link to your post as a comment to this entry. Oh and don’t forget the tag…..
Now we just need to get KC to convince the interns to stick around for another week and enter them into the wiki or the Exchange 2007 script repository so they will live on a little longer.
Wait!! where is my shell post? Mine will be a bit more brief then Ben’s but hopefully useful….
I do a lot of testing with different code releases and need to build and rebuild exchange servers a lot (too much already and the product isn’t even out yet!). Amazingly every time I rebuild my environment with a new drop of code I learn something new. One of those things I have been using for some time is a neat trick for creating multiple storage groups with the foreach command……
foreach (
$i in (3,4)
) {
new-storagegroup -name SG$i -server “E2k7-CCR-B2” -logfolderpath “C:\mounts\SG$i\Log” -SystemfolderPath “C:\mounts\SG$i\log”
}
foreach (
$i in (3,4)
) {
new-mailboxdatabase -storageGroup E2k7-CCR-B2\SG$i -Name MDB -edbFilePath “C:\mounts\SG$i\db\MDB.edb”
}
The first one will create 2 storage groups named SG3 & SG4. You can use this for up to 50 storage groups of course, but it was easier to show just two. The second one just takes those storage groups and creates databases inside of them. Usually I end up configuring my storage groups differently so it was easier to separate the commands…… If there is a better way to do this, please let me know….
Here is the screen shot of these in action!!

btw…. this is on VMWare Server :p
Leave a comment