Event Review: Advanced Windows PowerShell 2.0 Scripting (Session ITPROSRV-400)

Welcome to the material supporting page for this session. The materials on this page have been selected as the best matches to the content covered in the live event session.

Session Outline

In this session we will look at some of the powerful scripting capabilities of Windows PowerShell. First, we will introduce some of the basics of Windows PowerShell. We will examine how the help system works and review the Windows PowerShell command structure. We will also discuss how to format output and some basic Windows PowerShell commands. Next, we will explore variable declaration and scripting constructs in Windows PowerShell to perform basic programmatic functions, like loops and branching. Then we will look at advanced scripting techniques involving functions, filters, script blocks, and error handling. We will also look briefly at how to use Windows PowerShell with WMI to gain access to a wide variety of system objects and settings. Finally, we will look at how to use the .NET Framework to build a simple form using Windows PowerShell.

Session Agenda

Session Media

This session consists of a Windows Media presentation and demonstrations:

View the session presentation

View the full multimedia recording of this session.

Download the full session

Download the full multimedia recording of this session.

Download all slides and transcripts

Download just the slides and transcripts of this session.

Demo: Scripting with Windows PowerShell

In this demonstration, we'll explore variable declaration and scripting constructs in Windows PowerShell to perform basic programmatic functions, such as loops and branching. We'll then look at advanced scripting techniques involving functions, filters, script blocks, and error handling. We'll do this using the new Windows PowerShell Integrated Scripting Environment for debugging and invoking cmdlets for remote execution.  
Play online | Download

Demo: Creating Advanced Scripts with Windows PowerShell

In this demonstration, we will look at advanced scripting constructs, such as functions and script blocks, and we will look at support for error handling and filters in Windows PowerShell.  
Play online | Download

Demo: Using Windows PowerShell with WMI

In this demonstration, we will look briefly at how to use Windows PowerShell with Windows Management Instrumentation (WMI) to gain access to a wide variety of system objects and settings.  
Play online | Download

Demo: Scripting with .NET and COM Objects

In this demonstration, we will look at how to use .NET Framework to build a simple form using Windows PowerShell.  
Play online | Download

Demo: Converting VBScript to Windows PowerShell

In this demonstration, we will convert a Microsoft Visual Basic script (VBScript) to a Windows PowerShell script. We'll analyze the functionality of VBScripts and then reproduce similar functionality in Windows PowerShell scripts.  
Play online | Download


Use the following resources to learn more about topics covered in this briefing.

Microsoft Press Books

  • Microsoft Windows PowerShell Step By Step

    Summary: Teach yourself the fundamentals of Windows PowerShell command line interface and scripting language. Written by a leading scripting expert, this tutorial delivers self-paced labs, timesaving tips, and hands-on sample scripts for automating Windows administration?one step at a time.

  • Windows PowerShell Scripting Guide

    Summary: Get practical guidance for using Windows PowerShell to manage Windows Vista and Windows Server 2008. Written by Ed Wilson, a leading scripting expert and trainer at Microsoft, this reference offers a task-based approach to help you find the information you need for day-to-day tasks. With more than 200 scripts, it offers rich examples that administrators can customize for their own environment and needs. The scripts range in complexity from one-line commands, to full-blown scripts with managed output and command-line arguments?examples that are applicable to all skill levels. Includes a companion CD with fully searchable eBook, sample scripts, and other resources for managing your Windows-based environment

Third-Party Books

  • Windows PowerShell Cookbook O'Reilly Media

    Summary: This Cookbook provides hundreds of tested scripts that you can use right away to administer Windows systems using Microsoft's new tool-everything from automating routine tasks to working with files, event logs and other forms of structured data to managing the users and resources of complex Windows networks. Along with its task-based introduction to the Windows PowerShell scripting language and environment, this book meets the needs of system administrators at any level.

  • Essential PowerShell

    Summary: In Essential PowerShell, noted expert Holger Schwichtenberg gives Windows sysadmins all the knowledge and sample scripts they need to successfully administer production systems with PowerShell.

  • Windows PowerShell Unleashed

    Summary: PowerShell is one of the most exciting new products to come out of Microsoft in a long time. It is both a new scripting language and a command-line shell. People who have seen the demos have been extremely impressed by the power it brings to admins to automate and customize their regular tasks. PowerShell will be used as the basis for all Windows administrative scripting in the future, starting with Exchange 2007 and Vista. IT Pros have been hungering for whatever PowerShell information they can get their hands on.

Training and Certification