Posts
49
Comments
83
Trackbacks
0
Exchange
PowerShell Book Recommendations

Someone asked me to recommend a few books, so here they are: 1) Windows PowerShell Cookbook by Lee Holmes (from PS Team) 2) Windows PowerShell in Action by Bruce Payette (from PS Team) 3) For Exchange specific stuff, I actually haven't tried any (makes sense as we were writing code most of the time :). Here are a few I dug up on the web, they look promising: In fact, a few guys I know wrote a very nice book that should definitely...

posted @ Sunday, February 10, 2008 5:30 PM | Feedback (1)
Announcing the Exchange 2007 PowerShell Scriptacular demo pack!

  Dear Exchange 2007 Enthusiast(s), I'd like to announce the Exchange 2007 PowerShell Scriptacular (download zipfile) demo pack. What is it you ask? Well... this collection of Exchange PowerShell scripts was developed by Mihai Jalobeanu and Vivek Sharma while they (we) developed the Exchange Management Shell. We had a lot of fun writing these scripts, and we used them to showcase the innovations in Exchange 2007 System Management--we also promised that when Exchange 2007 is released to the wild, that we'd make our favorite scripts available to everyone. So here they are! If you want our exact demo setup: to get...

posted @ Thursday, December 21, 2006 6:12 PM | Feedback (13)
How to get DL membership in Exchange 2007

Abshishek reminded me of this with his post on how to figure out Security Group membership using PowerShell. But Distribution Groups are a whole different beast. So how do you do it? One way is to use the GUI: the awesome Exchange Management Console already shows you group membership. And on the cmdline you can do this in Exchange 2007: Using server side filtering (faster):    $filterid = (get-user Administrator).Identity get-group -filter { Members -eq $filterid } Using client side filtering (slower):    get-group | where { $_.Members -like '*Admin*' } This can be adapted to do nested membership as well---I'll leave it...

posted @ Sunday, October 22, 2006 11:10 PM | Feedback (3)
Looking for feedback on PowerShell and Exchange

Every once in a while its important to take a step back and see where we can improve---I already have a list of around ~150 things I'd like to improve in the Shell (Exchange and PowerShell), but I'd like to hear what you a) like about the shell and b) would like to see improved. You can leave comments, trackbacks on your own blogs, or mail me directly at (munging the address to defeat the spammers): vivek (at) thiswebpage'sdomainname.com   Here are some examples I found recently: Devin comments on how easy it is to move databases through cmdline and wonders why it isn't...

posted @ Friday, October 20, 2006 10:10 AM | Feedback (0)
Sorting top users and then moving them (2003/2007)

Brian asked in the comments: "... I am looking for a monad scipt/command that will allow me to sort user on e2k3 by size then move either the top or bottom X number of users..." Try this on Exchange 2007, for 2003, you can use get-wmiobject cmdlet to read Exchange 2003 information using WMI. This is how you would get the top X users per server (you can optionally do this per database by passing in -database to get-mailboxstatistics): get-mailboxstatistics -server Myserver | sort TotalItemSize -desc | select -first 10 Then you can move this list directly using move-mailbox: get-mailboxstatistics -server Myserver | sort TotalItemSize -desc |...

posted @ Tuesday, September 19, 2006 5:09 AM | Feedback (1)
Community Run Scripting Contest

Thanks to Josh for organizing this. In addition to the offical Microsoft One-Liner contest for Exchange 2007, Josh has started his own scripting contest for PowerShell and Exchange. The best part about it is, that the winner gets a signed copy of the upcoming PowerShell book from Bruce Payette, one of the leading designers of PowerShell! Wow, nice job Jeffrey and Josh. So go forth and submit some scripts to both the official contest and Josh's. To sweeten the deal, if you end up winning either contest, I'll put your name, company, winning entry etc. on the official team blog (2 million readers per...

posted @ Saturday, September 16, 2006 2:09 PM | Feedback (2)
Blog hiatus or how to really enjoy your summer…

Well it had to happen. Now that Exchange 2007 Beta has shipped, its time for some rest and relaxation... as a direct result of that, this blog won't get updated for at least a month. Yikes! Where will people get their insider tips from?!? No worries though, I've been updating http://exchangeninjas.com with all kinds of good stuff (specially the FAQs). I'm hoping the community really gets active--just recently there was a massive article posted on understanding one of the cooles features in E2007: Autodiscover (thanks Ashish!). Of course, I can't leave on vacation for that long without leaving some tidbits of info...

posted @ Sunday, August 20, 2006 7:08 PM | Feedback (0)
I’m a neeeenjjjaaaa now too!!!

exchangeninjas.com I registered and wrote my first tip and wiki edit. Totally cool! Looking forward to seeing more tips and tricks from the community.

posted @ Thursday, August 03, 2006 8:08 PM | Feedback (0)
Sample Code: Calling Exchange cmdlets from .Net code

Now that CDOEXM and WMI providers are gone from Exchange 2007, many custom application developers are probably wondering: "what do I use instead?". The answer is the same as it is for admins who want to move from using CDOEXM/WMI to PowerShell, which is: use the Exchange cmdlets from code. The PowerShell SDK provides a great set of APIs that will let you host an instance of the PowerShell engine and run cmds / scripts through it. So let's talk about how to code against PowerShell. Think of the PowerShell engine as being similar to the SQL engine. Both engines do...

posted @ Thursday, July 27, 2006 8:07 AM | Feedback (20)
Videos: History behind Exchange Management Shell and some cool demos!

Mihai (awesome lead developer for the Exchange Management Shell) and I did a video series on some of our design decisions as well as the history behind why Exchange partnered with PowerShell/Monad in the first place. The second video has some neat demos that we did---just a little teaser for all of you who want to get Beta 2 (hint, keep watchin msexchangeteam.com for exact details on where to get it). Here are the videos:  Video: Vivek Sharma and Mihai Jalobeanu on Exchange Management Shell  Video: Exchange Management Shell in action  If you have any questions or feedback, please let us know.

posted @ Friday, July 21, 2006 4:07 PM | Feedback (0)
Full Exchange Archive
News
A little slow these days as I'm busy working on exchangelabs.com. I will try and post tidbits when I get some time. Enjoy the older posts till then!