PowerShell Team

Automating the world one-liner at a time…

Latest posts

Jun 13, 2008
Post comments count 0
Post likes count 0

PowerShell & OpenXML

PowerShell Team

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...

Jun 13, 2008
Post comments count 0
Post likes count 0

Yes, But What About The FLAVOR?

PowerShell Team

 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...

Jun 12, 2008
Post comments count 0
Post likes count 0

TechEd: MGT384 What's Coming In PowerShell V2 – DEMOs

PowerShell Team

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

Jun 12, 2008
Post comments count 0
Post likes count 0

TechEd: MGT384 What's Coming In PowerShell V2

PowerShell Team

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

Jun 10, 2008
Post comments count 0
Post likes count 0

PowerShell Eventing QuickStart

PowerShell Team

  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...

Jun 10, 2008
Post comments count 0
Post likes count 0

Windows PowerShell Sessions @ TechEd IT Pro

PowerShell Team

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...

Jun 5, 2008
Post comments count 0
Post likes count 0

CredSSP for second-hop remoting

PowerShell Team

PS C:\> $r = New-PSSessionPS C:\> icm $r {Get-PfxCertificate c:\monad\TestpfxFile.pfx}Enter password:Invoke-Command : The requested operation cannot be completed. The computer must be trusted for delegation and the current user account must be configured to allow delegation.At line:1 char:4+ icm <<<<  $r {Get-PfxCertificate c:\monad\TestpfxFile.pfx} l am trying to run Get-PfxCertificate in a remote runspace, but why does it fail? What is delegation? PowerShell remoting supports a new authentication mechanism called CredSSP.  "CredSSP enables an application to delegate the user’s creden...

Jun 3, 2008
Post comments count 0
Post likes count 0

V2: Custom Enums

PowerShell Team

Once again MOW proves what a clever guy he is.  Check out his blog entry PowerShell V2 CTP2: making Custom Enums using Add-Type. He shows how you can make your own enums using a very simple function he wrote (Add-Enum) which leverages our new Add-Type cmdlet.  Wonderful stuff. Add-Type is one of those huge game-changing features that we've added to V2 and it will take all of us a while to understand the full range of scenarios that it enables.  The things that we had in focus for this were: We had a couple others but these were the biggies.  There is an important aspect to Add-Type that y...

Jun 2, 2008
Post comments count 0
Post likes count 0

Show-PowerShell / Hide-PowerShell

PowerShell Team

During the Week of WPF, someone requested an example of how to minimize the PowerShell window. Here's a quick module to make it happen.  Copy/paste the code below into Documents\WindowsPowerShell\Packages\PowerShell\PowerShell.psm1 $script:showWindowAsync = Add-Type –memberDefinition @” [DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); “@ -name “Win32ShowWindowAsync” -namespace Win32Functions –passThru function Show-PowerShell() {      $null = $showWindowAsync::ShowWin...