Jingle Shell, Jingle Shell, PowerShell V2 CTP3 is RTW

by Doug Finke on December 23, 2008

in PowerShell

via The PowerShell Guy

Download Windows PowerShell V2 CTP3

Download WinRM 2.0 CTP3 (required for PowerShell remoting)

Some New Things

  • Over 60 new cmdlets
  • Adding/Removing/Renaming computers
  • Cmdlets for event logs
  • Cmdlets for WS-Man functionality and even a WS-Man provider
Windows PowerShell ISE
  • Supports a graphical debugger
  • Context sensitive F1 help
  • A Programmable interface

via Hemant Mahawar Windows PowerShell Team

Advanced Functions

Cmdlets++ ?

Function Test-LeapYear {
  param( 
   [Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)] 
   [Int]$Year 
  ) 
}
 

Attributing parameters this way gives you

  • Ensures that you send it the right number of parameters
  • Supports pipelining
  • Tab-Completion of parameter names
  • Supports Get-Command, (Get-Command Test-LeapYear).Parameters

You can also provide granular inline documentation that works with Get-Help. Like Synopsis, Example, Link and more.

via Jeffrey Snover Windows PowerShell Team

I am really looking forward to working with PowerShell in 2009.