Synopses & Reviews
PowerShell replaces cobbled-together assemblies of third-party management tools with an elegant programming language and a powerful scripting shell for the Windows environment. In the tradition of Manning's ground breaking "In Action" series, this book comes from right from the source. Written by Bruce Payette, one of principal creators of PowerShell, Windows PowerShell in Action shows you how to build scripts and utilities to automate system tasks or create powerful system management tools to handle the day-to-day tasks that drive a Windows administrator's life. Because it's based on the .NET platform, PowerShell is also a powerful tool for developers and power users.
Windows PowerShell in Action was written by Bruce Payette, one of the founding members of the Windows PowerShell team, co-designer of the PowerShell language and the principal author of the PowerShell language implementation. The book enables you to get the most out of the PowerShell environment. Using many examples, both small and large, this book illustrates the features of the language and environment and shows how to compose those features into solutions, quickly and effectively.
This book is designed for anyone who wants to learn PowerShell and use it well. Rather than simply being a book of recipes to read and apply, this book gives you the deep knowledge about how PowerShell works and how to apply it.
This volume shows how to build scripts and utilities to automate system tasks or create powerful system management tools to handle the day-to-day tasks that drive a Windows administrator's life.
Do you know how to use Windows PowerShell to navigate the filesystem and manage files and folders? Or how to retrieve a web page? This introduction to the PowerShell language and scripting environment provides more than 430 task-oriented recipes to help you solve the most complex and pressing problems, and includes more than 100 tried-and-tested scripts that intermediate to advanced system administrators can copy and use immediately.
You'll find hands-on tutorials on fundamentals, common tasks, and administrative jobs that you can apply whether you're on a client or server version of Windows. You also get quick references to technologies used in conjunction with PowerShell, including format specifiers and frequently referenced registry keys to selected .NET, COM, and WMI classes. With Windows PowerShell Cookbook, youll get more done in less time.
- Take a tour of PowerShells core features, including the command model, object-based pipeline, and ubiquitous scripting
- Learn PowerShell fundamentals such as the interactive shell and fundamental pipeline and object concepts
- Perform common tasks that involve working with files, Internet-connected scripts, user interaction, and more
- Solve tasks in systems and enterprise management, such as working with Active Directory, the filesystem, registry, event logs, processes, and services
About the Author
Bruce Payette is one of the founding members of the Windows PowerShell team. He is co-designer of the PowerShell language along with Jim Truher and is the principal author of the language implementation. He joined Microsoft in 2001 working on Interix - the POSIX subsystem for Windows - then moved to the help found the PowerShell project shortly thereafter. Prior to joining Microsoft he worked at various companies including Softway (the creators of Interix) and MKS (producers of the MKS Toolkit) building UNIX tools for Windows. He lives in Bellevue, Washington with his wife, many computers and 3 extremely over-bonded and very spoiled cats.
Table of Contents
ForewordForeword to the First EditionPrefaceTour
- A Guided Tour of Windows PowerShell
- Chapter 1: The Windows PowerShell Interactive Shell
- Chapter 2: Pipelines
- Chapter 3: Variables and Objects
- Chapter 4: Looping and Flow Control
- Chapter 5: Strings and Unstructured Text
- Chapter 6: Calculations and Math
- Chapter 7: Lists, Arrays, and Hashtables
- Chapter 8: Utility Tasks
- Chapter 9: Simple Files
- Chapter 10: Structured Files
- Chapter 11: Code Reuse
- Chapter 12: Internet-Enabled Scripts
- Chapter 13: User Interaction
- Chapter 14: Debugging
- Chapter 15: Tracing and Error Management
- Chapter 16: Environmental Awareness
- Chapter 17: Extend the Reach of Windows PowerShell
- Chapter 18: Security and Script Signing
- Chapter 19: Integrated Scripting Environment
- Chapter 20: Files and Directories
- Chapter 21: The Windows Registry
- Chapter 22: Comparing Data
- Chapter 23: Event Logs
- Chapter 24: Processes
- Chapter 25: System Services
- Chapter 26: Active Directory
- Chapter 27: Enterprise Computer Management
- Chapter 28: Windows Management Instrumentation
- Chapter 29: Remoting
- Chapter 30: Transactions
- Chapter 31: Event Handling
- 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