Friday, September 23, 2011

PowerShell 3.0

Well, as you and I have anticipated, Microsoft will be releasing PowerShell 3.0 and the Latest WinRM (3.0) with Windows 8.  So for now, we can enjoy the CTP1 ( )

Right off the bat, I saw that few cmdlet got added to the default install (I am testing it in a Standard Windows 2008 R2 Std server with SP1 and .NET 4.0)    SP1 and .Net 4.0 is required

PS C:\> get-host

Name             : ConsoleHost
Version          : 3.0
PS C:\> (Get-Command -CommandType "CmdLet").count

PS C:\> (Get-Command -CommandType "CmdLet").count

and with cmdlet,function,alias ...

PS C:\> (Get-Command).count

PS C:\> (Get-Command).count
from a Quick Look, I see a lot of new stuff ..    I will have to play with them some more ....  (Here's a copy and Paste from Microsoft site) ...

Windows PowerShell 3.0 Some of the new features in Windows PowerShell 3.0 include:
  • Workflows
    Workflows that run long-running activities (in sequence or in parallel) to perform complex, larger management tasks, such as multi-machine application provisioning. Using the Windows Workflow Foundation at the command line, Windows PowerShell workflows are repeatable, parallelizable, interruptible, and recoverable.
  • Robust Sessions
    Robust sessions that automatically recover from network failures and interruptions and allow you to disconnect from the session, shut down the computer, and reconnect from a different computer without interrupting the task.
  • Scheduled Jobs Scheduled jobs that run regularly or in response to an event.
  • Delegated Administration
    Commands that can be executed with a delegated set of credentials so users with limited permissions can run critical jobs
  • Simplified Language Syntax Simplified language syntax that make commands and scripts look a lot less like code and a lot more like natural language.
  • Cmdlet Discovery
    Improved cmdlet discovery and automatic module loading that make it easier to find and run any of the cmdlets installed on your computer.
  • Show-Command
    Show-Command, a cmdlet and ISE Add-On that helps users find the right cmdlet, view its parameters in a dialog box, and run it.
WMI in Windows Management Framework 3.0 CTP1 introduces:
  • A new provider development model
    This new model brings down the cost of provider development and removes the dependency on COM.
  • A new MI Client API to perform standard CIM operations.
    The API can be used to interact with any standard WsMan + CIMOM implementation, allowing management applications on Windows to manage non-Windows computers.
  • The ability to write Windows PowerShell cmdlets in native code
    The new WMI Provider APIs supports an extended Windows PowerShell semantics API allowing you to provide rich Windows PowerShell semantics. e.g., Verbose, Error, Warning, WhatIf, Confirm, Progress
WinRM With Windows Management Framework 3.0 CTP1:
  • Connections are more robust
    Session disconnect and reconnect, with or without client session reconstruction, allows long-running tasks to continue even when the session in which they were started is closed and the client computer is shut down. This feature also allows administrators to reconnect from different computers to check the status of remote running tasks and get results.
  • Connections are more resilient
    In Windows PowerShell 3.0 CTP1, connections can survive short-term network failures; the client-server connection is not severed at the first sign of trouble. If network problems persist, the client is safely disconnected and can reconnect by using the Connect-PSSession or Receive-PSSession cmdlets.
Windows PowerShell Web Service Windows PowerShell Web Service enables an administrator to expose a set of PowerShell cmdlets as a RESTful web endpoint accessible via the Open Data Protocol (OData). This provides remote access to invoke cmdlets from both Windows and non-Windows clients.

No comments:

Post a Comment