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
- Scripting and advanced scripting
- Using Windows PowerShell with Windows Management Instrumentation (WMI)
- Using Windows PowerShell with .NET Framework and COM objects
- Converting Microsoft Visual Basic to Windows PowerShell Scripts
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. |
|
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. |
|
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. |
|
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. |
|
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. |
Related Links
Use the following resources to learn more about topics covered in this briefing.
- PowerShell Community Extensions - Home
- Shell Tools @ PowerShell.com
- Scripting with Windows PowerShell
- The Script Center Script Repository: Sample Windows PowerShell Scripts
- Search for User Groups near you using User Group Support Services Search
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.
-
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.
-
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
-
Summary: This three-day instructor-led course provides students with the knowledge and skills to utilize Windows PowerShell for administering and automating administration of Windows Server 2008. The course focuses on cmdlets, script structure and flow control, language syntax, and implementation details of scripting administrative tasks using COM, WMI, and .NET foundations.
-
Summary: This two-hour clinic provides in-depth knowledge on the following Windows Server 2008 Server Management functionality: Server Manager Overview, Server Core Installation, Windows PowerShell, and Windows Remote Management.
Implementing and Managing Windows Server 2008 Hyper-V
Summary: This three-day instructor-led course teaches students how to implement and manage Windows Server 2008 Hyper-V. It also teaches students how to manage Hyper-V with Solution Center Virtual Machine Manager (VMM) and with PowerShell.
Windows PowerShell for Administrators: Course 50025A: Three days; Instructor-Led
Summary: This three-day hands-on class will introduce administrators to the new Windows command-line shell, Windows PowerShell. Windows PowerShell offers both a command-line interface as well as a scripting environment. With connectivity to Microsoft products such as Microsoft Exchange Server 2007, Microsoft System Center Operations Manager (MOM 2007), and many more, Windows PowerShell provides a consistent interface to more easily control system administration and accelerate automation. It runs on Windows XP Service Pack 2 (SP2), Windows Server 2003, Windows Vista, and Windows Server 2008.