Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introducing PowerShell 3.0


Published on

Since Windows 7 and Windows Server 2008 R2, Windows PowerShell has been a part of the core operating system, meaning we will see the next version of PowerShell in Windows 8. In this session we will look at what`s new in Windows PowerShell 3.0, based on the Windows Developer Preview released at the BUILD conference in September. You will get to see new features in PowerShell itself, as well as new modules for managing Windows 8 and Windows Server 8.

Published in: Technology
  • Be the first to comment

Introducing PowerShell 3.0

  1. 1. Introducing PowerShell 3.0 Jan Egil Ring Senior Consultant, Infrastructure
  2. 2. Agenda • Overview of previous versions • Windows Management Framework • New features in PowerShell v3 • Demo • Sneak peak at PowerShell in «Windows Server 8» • Microsoft Script ExplorerJanuary 22, 2012 NIC 2012
  3. 3. Previous versions Windows PowerShell 1.0 • Version 1.0 was released in 2006 for Windows XP SP2/SP3, Windows Server 2003, and Windows Vista. For Windows Server 2008, it was included as an optional feature. • The first Microsoft product with native PowerShell support was Exchange Server 2007 • Shipped with 129 native cmdletsJanuary 22, 2012 NIC 2012
  4. 4. Previous versions Windows PowerShell 2.0 • Version 2.0 is integrated with Windows 7 and Windows Server 2008 R2 and is released for Windows XP with Service Pack 3, Windows Server 2003 with Service Pack 2 and Windows Vista with Service Pack 1 • Part of Microsoft Common Engineering Criteria since 2009 • The major new features includes Remoting, Background Jobs, Modules, Advanced Functions and the Windows PowerShell ISE • 16 PowerShell modules available in Windows Server 2008 R2 for managing server roles and features, in example AD, Group Policy and Failover Clusters. • Shipped with 236 native cmdletsJanuary 22, 2012 NIC 2012
  5. 5. Disclaimer• This presentation is based on a Community Technology Preview (pre-beta) version of the product.• Features and behavior are likely to change before the final release.
  6. 6. IntroducingWindows PowerShell 3.0
  7. 7. Availability• «Windows 8 Alpha» (Windows Developer Preview)• Windows Management Framework 3.0 CTP 1• Windows Management Framework 3.0 CTP 2
  8. 8. Windows Management Framework• Windows PowerShell• Windows Management Instrumentation (WMI)• Windows Remote Management (WinRM)Windows Management Framework 3.0 - Community Technology Preview (CTP) #2
  9. 9. New features in PowerShell 3.0 WorkflowsWorkflows that run long-running Robust SessionsRobust sessions that automatically recover from network failures and interruptions Scheduled JobsScheduled jobs that run regularly or in response to an event. Delegated AdministrationCommands that can be executed with a delegated set of credentials Simplified Language SyntaxWhere-Object and Foreach-Object can be used without a scriptblock Cmdlet DiscoveryImproved cmdlet discovery and automatic module loading Show-CommandShow-Command, helps users view Cmdlet parameters in a dialog box, and run it.
  10. 10. WMI in Windows Management Framework 3.0 A new provider development modelThis new model brings down the cost of provider development and removes thedependency on COM. A new MI Client API to perform standard CIM operations.The API can be used to interact with any standard WsMan + CIMOMimplementation, allowing management applications on Windows to manage non-Windows computers. The ability to write Windows PowerShell cmdlets in native codeThe new WMI Provider APIs supports an extended Windows PowerShell semantics API
  11. 11. WinRM in Windows Management Framework 3.0 Connections are more robustSession disconnect and reconnect, with or without client sessionreconstruction, allows long-running tasks to continue even when the session in whichthey were started is closed and the client computer is shut down. Connections are more resilientIn Windows PowerShell 3.0, connections can survive short-term network failures.
  12. 12. Microsoft Connect (
  13. 13. DEMOLet`s have a look at the new features in action
  14. 14. 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.
  15. 15. Windows PowerShell Web Access The PowerShell console exposed as a website Use PowerShell from mobile devices Available in «Windows Server 8»
  16. 16. Windows PowerShell Workflow Windows PowerShell Workflow lets IT pros and developers apply the benefits of workflows to the automation capabilities of Windows PowerShell.Getting Started with Windows PowerShell Workflow A workflow is a sequence of automated steps or activities that execute tasks on orretrieve data from one or more managed nodes (computers or devices). These activitiescan include individual commands or scripts. Windows PowerShell Workflow enables, ITpros and developers alike, to author sequences of multi-computer management activities— that are either long-running, repeatable, frequent, parallelizable, interruptible,stoppable, or restartable — as workflows. By design, workflows can be resumed from anintentional or accidental suspension or interruption, such as a network outage, a rebootor power loss.Download the Getting Started guide here:
  17. 17. Microsoft Script Explorer• Script Explorer helps scripters find Windows PowerShell scripts and how-to guidance in online repositories such as the TechNet Script Center Script Repository, PoshCode, and the local file system.• Can run both standalone and as an Add-on to PowerShell ISE
  18. 18. Microsoft Script Explorer Features• Search for Windows PowerShell scripts, and get details about Windows PowerShell scripts from online repositories and the local file system.• Search for Windows PowerShell snippets from local file system.• Search for how-to guidance from online repositories.• Select available repositories to refine search.• Filter based on technology or product.• See item details, including rating, author, script code, and source information.• Copy script or snippet code to the Clipboard, and insert it in the Windows PowerShell ISE editor.• Save script or snippet code to the local file system.• Browse scripts that are organized following a categorized topology.• Explore community resources for getting started on Windows PowerShell. The above listing is copied from the Microsoft Script Explorer Readme document.
  19. 19. Microsoft Script Explorer Availability• Currently in private beta/CTP• No release time information available• More information: Jeremy Kelly from Microsoft announced the Script Explorer on the PowerScripting podcast last year:
  20. 20. DEMOMicrosoft Script Explorer
  21. 21. Review  Overview of previous versions  Windows Management Framework  New features in PowerShell v3  Walkthrough  Demo  Sneak peak at PowerShell in «Windows Server 8»  Microsoft Script ExplorerJanuary 22, 2012 NIC 2012
  22. 22. Call to action• Download Windows Management Framework 3.0 - Community Technology Preview (CTP) #2
  23. 23. Call to actionIf not already using PowerShell, start using it (quickest way to start: stop using cmd.exe)Use the PowerShell community to Get-Help
  24. 24. Resources TechNet WikiWindows PowerShell Survival Guide V3 Featured Articles V3 Tips and Tricks
  25. 25. Microsoft Technology User Group Script Club Part of the Microsoft Technology User Group in Oslo Regular workshops exploring various topics around automation and scripting with a focus on PowerShell. Meetings is announced at If you want to find or create a PowerShell usergroup or script club in your area, check out
  26. 26. Contact infoNew-Object PSObject -Property @{Name = "Jan Egil Ring""E-mail" = ""TwitterId = "@JanEgilRing"Website = ""}