PowerShell Team

Automating the world one-liner at a time…

Best of Tech.Ed 2006 (BOSTON)

TechNet has made the provided videos of the top rated sessions of the TechEd 2006 Boston conference available at: http://www.microsoft.com/emea/itshowtime/ My talk: Windows PowerShell: Next Generation Command Line Scripting is available at: http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=209 Enjoy! Jeffrey Snover [MSFT]Windows ...

All crosshairs on the same prairie dog

When I lived in Colorado, I picked up the great concept/phrase, "All crosshairs on the same prairie dog".   Damon Cortesi recent blog highlights this principle.  http://dcortesi.com/2006/09/07/windows-powershell/ He posted a blog about the verbosity of PowerShell and within an hour - we had 3 PowerShell people post ...

DateTime Utility Functions

I often want to find things that happened Today.  For instance, which files got changed today.  Windows PowerShell makes this easy to do but it can be a bit verbose and I do it a lot so I've added a function to my profile:  IsToday. function isToday ([datetime]$date) {[datetime]::Now.Date  -eq  $date.Date} This takes ...

BizTalk Server Applications: Get/Start/Stop

Tomas Restrepo has a nice script for getting/starting/stoping BizTalk Server Applications at: http://www.winterdom.com/weblog/2006/09/02/BTSResetWithPowerShell.aspx I like how readable it the script is.  It is completely obvious what is going on.  Compare that script with his original C# implementation at: http://www.winterdom.com/...

Tip of the Day

Exchange 2007 has implemented a Get-Tip cmdlet which emits a tip of the day.  Flaphead has written a small script which gets them all and has published them on: http://blog.flaphead.dns2go.com/archive/2006/08/17/3514.aspx.  There are a number of general tips along with the Exchange tips.  Here is an example: Tip of the day #29...

Background "jobs" and PowerShell

A lot of people have asked whegther Windows PowerShell can do UNIX job handling.  The paraphrase an old management salesperson joke, "YES - YOU can do UNIX job handling with Windows PowerShell" (which means you have to do it yourself).  Jim Truher shows you how in his latest blog entry: http://jtruher.spaces.live.com/...

Automating Dell Battery Replacement Discovery

MOW has done it again.  Checkout his blog entry which shows how to leverage Windows PowerShell to automate determining which of the Dell laptops in your enterprise need to have their batteries replaced. http://mow001.blogspot.com/2006/08/powershell-has-my-dell-dangerous.html Totally cool.  Jeffrey Snover [MSFT]Windows ...

PowerShell Namespsaces

A summary of the Namespaces PowerShell defines and uses.   System.Management.Automation System.Management.Automation serves as the root namespace for PowerShell.  The namespace contains the types a developer would use to implement a Cmdlet.   Sub-namespaces are defined for specific sections of the API that are used by specific ...

Exchange 2007 Windows PowerShell Script Contest

Josh Maher has an exchange oriented blog at http://joshmaher.wordpress.com/ .  He is running a contest to for the best Exchange 2007 script ( http://joshmaher.wordpress.com/2006/08/25/powershell-scripting-for-exchange-2007/ ) and I offered to donate the prize of a copy of Bruce Payette's book PowerShell in Action ( http://...