PowerShell Team
Automating the world one-liner at a time…
Latest posts
Block Comments in V2
Smith Catar was looking at my Tech Ed demos and noticed that I used block comments. These are not in the CTP that you have so I guess I sorta let this one leak out. Yes - V2 will have BLOCK COMMENTS!!! Block comments start with "<# and end with "#>". e.g. <# This isablock comment#> Happy happy. Block comments - you asked for them, you'll get them. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsof...
Get-OSSku.ps1
Nitin Bhat the WMI PM recently pointed HERE to answer the question, how do know what OS SKU a machine is running? You can run the expression $((gwmi win32_operatingsystem).OperatingSystemSKU) to the the value and then look it up on that table. I decided to turn it into a script you can use. It is rock-simple but it saves you the typing and there's some value in that. I've included it below and attached it as well. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCente...
Best of Tech Ed: Breakthrough Product of the year => PowerGUI
The Best of Tech Ed 2008 were awarded and PowerGUI won Breakthrouth Product of the Year. WOW what an honor and acknowledgement of great work! Congratulations to Dmitry, Kirk and the rest of that team! You guys have brought a lot of great visibility to Quest Software. Your bosses should be fetching you cups of coffee and getting you bigger offices :-) If you aren't already running PowerGUI - what are you waiting for? Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windo...
PowerShell & OpenXML
Eric White just posted an amazing set of Cmdlets on CodePlex. They allow you to use PowerShell to manipulate OpenXML documents to do all sorts of fun things, like create graphs from the output of PowerShell, automatically generate documents from XML, and extract comments from a document. Below is an 8-minute video introducing you to the technology and a blog post with more details. PowerTools for Open XML Introduction (Video) Blog: http://blogs.msdn.com/ericwhite/archive/2008/06/11/processing-open-xml-documents-server-side-using-powershell.aspx Get PowerTools For Open XML Enjoy, J...
Yes, But What About The FLAVOR?
Kirk Munro posted a blog entry HERE saying how thrilled he was at level of presence PowerShell had at TechEd 2008. It was a VERY good TechEd for PowerShell. There were lots of breakout sessions, lots of hands on labs and interactive Q&A, lots of vendor support in the exhibit, lots of books, quite a few mentions in keynote demos and presentations. That was all great but what impressed me the most was the number of people that said how PowerShell had saved their butts, made them heros with their peers or allowed them to do things that they could never do. It reminded me of this great...
TechEd: MGT384 What's Coming In PowerShell V2 – DEMOs
Attached are the demos I used in that talk. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx WhatsComingInV2Demos.zip
TechEd: MGT384 What's Coming In PowerShell V2
Attached are the slides I presented at TechEd yesterday. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx Mgt384-Jsnover-WhatsComingPowerShellV2.pptx
PowerShell Eventing QuickStart
The second CTP of PowerShell V2 (CTP2) introduces another new feature called PowerShell Eventing. PowerShell Eventing lets you respond to the asynchronous notifications that many objects support. We didn’t get a chance to fully document these cmdlets in the CTP2, though, so here’s a quick start and primer to help you explore the feature. Discovering Events Before playing with PowerShell eventing, you’ll probably want to find an object that supports events. But how do you know what an object supports? You will most commonly discover this through API documentation ("To receive notifications, subscribe to the...
Windows PowerShell Sessions @ TechEd IT Pro
Windows PowerShell Sessions Breakout Sessions MGT253 Introduction to Windows PowerShell Tuesday, June 10 1:15 PM - 2:30 PM, S220 C Speaker(s): Wassim Fayed Level: 200 - Intermediate MGT384 What’s Coming in Windows PowerShell V2? Wednesday, June 11 1:00 PM - 2:15 PM, S320 C Speaker(s): Jeffrey Snover Level: 300 - Advanced SVR387 Windows, PowerShell, and Windows Management Instrumentation: Unveiling Microsoft’s Best Kept Secret Thursday, June 12 10:15 AM - 11:30 AM, S310 E Speaker(s): Ben Pearce Level: 300 - Adv...