Early Christmas Present from PowerShell Team: Community Technology Preview-3 (CTP3) of Windows PowerShell V2

While Santa and co. are getting busy for Christmas, the Windows PowerShell Team is pleased to release the third Community Technology Preview (CTP3) of Windows PowerShell V2! First let us thank you for all your great feedback on CTP1 and CTP2.  This is your product so never be shy about letting us know what you want… Read more

Step up your FOREACH Game

Last night Bruce Payette and I were interviewed on the PowerScripting Podcast with Hal Rottenberg and Jonathan Walz.  It was a blast!  There were a ton of people connected and were firehosing questions & comments in the Chat window.  There were lots of comments/discussions about Twitter.  I confessed to having never used twitter.  This morning… Read more


The other day I showed you how you can use ENUMs.  I showed an example of how you can find all the SPECIALFOLDERs on a system.  Here is a script that I call Mount-SpecialFolders.ps1 which mounts all your special folders as PowerShell drives.   # Mount-SpecialFolders.ps1 # param($Folder="*", [SWITCH]$Verbose, [SWITCH]$PassThru) foreach ($f in [Enum]::GetValues([System.Environment+SpecialFolder]) |where… Read more

What the Heck is an ENUM?

In my latest post Explore your [Environment] I said the following: PS> [System.Environment+SpecialFolder] IsPublic IsSerial Name                                     BaseType ——– ——– —-                                     ——– False    True     SpecialFolder                            System.Enum Notice that it is an ENUM.  The great things about ENUMS is that when you specify an invalid value – it tells you what the valid values are: One of… Read more

Explore Your [Environment]

This topic is a little long but I strongly encourage you to walk through it and master the techniques it illustrates.  I can assure you that you’ll will use them a couple thousand times in the next couple of years. .Net provides a wonderful class called System.Environment that tells you all about your environment.  It… Read more

Gesticulating Ben Pearce

I gave a talk with Ben Pearce during IT Forum in Barcelona this year.  It was the first time I had ever given a talk with Ben as was shocked (and delighted) by his speaking style.  Ben is an awesome presenter.  Full Stop.  That said, one of his presentation techniques is to use of very… Read more

PowerShell Comic

I just found THIS.  ha ha! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx… Read more

Expert to Expert: Erik Meijer and Jeffrey Snover – Inside PowerShell

I had a great time talking to Erik Meijer about PowerShell – what it is, how it works under the covers, why we do what we do and where we are going. You can see the interview on Channel 9 HERE. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShellVisit the… Read more


Jeffery Snover just posted a Get-Me script.  The Get-Me script finds out the principal of the user running PowerShell.  In case you ever wanted to know how to get all of the users on a machine (or from a domain), here’s a quick function that queries WMI for users. function Get-Everyone([switch]$fromDomain) { #.Synopsis # Gets… Read more