PowerShell Team

Automating the world one-liner at a time…

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

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

CredSSP for second-hop remoting

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

V2: Custom Enums

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

Show-PowerShell / Hide-PowerShell

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