Synopses & Reviews
This portable reference to Windows PowerShell summarizes both the command shell and scripting language, and provides a concise reference to the major tasks that make PowerShell so successful. It's an ideal on-the-job tool for Windows administrators who don't have time to plow through huge books or search online.
Written by Microsoft PowerShell team member Lee Holmes, and excerpted from his Windows PowerShell Cookbook, Windows PowerShell Pocket Reference offers up-to-date coverage of PowerShell's 3.0 release. You'll find information on .NET classes and legacy management tools that you need to manage your system, along with chapters on how to write scripts, manage errors, format output, and much more.
Beginning with a whirlwind tour of Windows PowerShell, this convenient guide covers:
- PowerShell language and environment
- Regular expression reference
- PowerShell automatic variables
- Standard PowerShell verbs
- Selected .NET classes and their uses
- WMI reference
- Selected COM objects and their uses
- .NET string formatting
- .NET datetime formatting
An authoritative source of information about PowerShell since its earliest betas, Lee Holmes' vast experience lets him incorporate both the "how" and the "why" into the book's discussions. His relationship with the PowerShell and administration community -- through newsgroups, mailing lists, and his informative blog Lee Holmes -- gives him insight into problems faced by administrators and PowerShell users alike.
If you're ready to learn this powerful tool without having to break stride in your routine, this is the book you want.
Synopsis
This portable reference to Windows PowerShell 3.0 summarizes the command shell and scripting language, and provides a concise reference to the many tasks that make PowerShell so useful. If youre a busy Windows administrator, and dont have time to plow through huge books or search online, this is the ideal on-the-job tool.
Written by Microsoft PowerShell team member Lee Holmes, and excerpted from his Windows PowerShell Cookbook, this edition offers up-to-date coverage of PowerShell 3.0. Youll find information on the .NET classes and legacy tools you need to manage your system, along with chapters on how to write scripts, manage errors, and format output.
Beginning with a guided tour of Windows PowerShell, this handy guide covers:
- PowerShell language and environment
- Regular expression reference
- XPath quick reference
- .NET string formatting
- .NET DateTime formatting
- Selected .NET classes and their uses
- WMI reference
- Selected COM objects and their uses
- Selected events and their uses
- Standard PowerShell verbs
About the Author
Lee Holmes is a developer on the Microsoft Windows PowerShell team, and has been an authoritative source of information about PowerShell since its earliest betas. His vast experience with Windows PowerShell enables him to integrate both the 'how' and the 'why' into discussions. Lee's involvement with the PowerShell and administration community (via newsgroups, mailing lists, and blogs) gives him a great deal of insight into the problems faced by all levels of administrators and PowerShell users alike.
Table of Contents
Preface; ; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; A Guided Tour of Windows PowerShell; Introduction; An Interactive Shell; Structured Commands (Cmdlets); Deep Integration of Objects; Administrators as First-Class Users; Composable Commands; Techniques to Protect You from Yourself; Common Discovery Commands; Ubiquitous Scripting; Ad Hoc Development; Bridging Technologies; Namespace Navigation Through Providers; Much, Much More; Chapter 1: PowerShell Language and Environment; 1.1 Commands and Expressions; 1.2 Comments; 1.3 Help Comments; 1.4 Variables; 1.5 Booleans; 1.6 Strings; 1.7 Numbers; 1.8 Arrays and Lists; 1.9 Hashtables (Associative Arrays); 1.10 XML; 1.11 Simple Operators; 1.12 Comparison Operators; 1.13 Conditional Statements; 1.14 Looping Statements; 1.15 Working with the .NET Framework; 1.16 Writing Scripts, Reusing Functionality; 1.17 Managing Errors; 1.18 Formatting Output; 1.19 Capturing Output; 1.20 Common Customization Points; Chapter 2: Regular Expression Reference; Chapter 3: XPath Quick Reference; Chapter 4: .NET String Formatting; 4.1 String Formatting Syntax; 4.2 Standard Numeric Format Strings; 4.3 Custom Numeric Format Strings; Chapter 5: .NET DateTime Formatting; 5.1 Custom DateTime Format Strings; Chapter 6: Selected .NET Classes and Their Uses; Chapter 7: WMI Reference; Chapter 8: Selected COM Objects and Their Uses; Chapter 9: Selected Events and Their Uses; Chapter 10: Standard PowerShell Verbs;