Synopses & Reviews
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 administrationone step at a time.
Discover how to: Use built-in cmdlets to execute commands Write scripts to handle recurring tasks and configure scheduled jobs Use providers to access information external to the shell environment Configure network components using Windows Management Instrumentation (WMI) Manage users, groups, and computers with Active Directory Services Execute scripts for administering and troubleshooting Microsoft Exchange Server 2007 PLUSGet a complete list of cmdlet commands and a guide for moving from VBScript to Windows Powershell
CD features: All practice exercises 100+ sample scripts to adapt for your own work Scriptomatic 2.0 scripting tool WMI scripting tools and utilities Fully searchable eBook
A Note Regarding the CD or DVD
The print version of this book ships with a CD or DVD. For those customers purchasing one of the digital formats in which this book is available, we are pleased to offer the CD/DVD content as a free download via OReilly Medias Digital Distribution services. To download this content, please visit OReillys web site, search for the title of this book to find its catalog page, and click on the link below the cover image (Examples, Companion Content, or Practice Files). Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to firstname.lastname@example.org.
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.
Discover how to:
- Use built-in cmdlets to execute commands
- Write scripts to handle recurring tasks and configure scheduled jobs
- Use providers to access information external to the shell environment
- Configure network components using Windows Management Instrumentation (WMI)
- Manage users, groups, and computers with Active Directory Services
- Execute scripts for administering and troubleshooting Microsoft Exchange Server 2007
- PLUS—Get a complete list of cmdlet commands and a guide for moving from VBScript to Windows Powershell
- All practice exercises
- 100+ sample scripts to adapt for your own work
- Scriptomatic 2.0 scripting tool
- WMI scripting tools and utilities
- Fully searchable eBook
For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
About the Author
Ed Wilson is a well-known scripting expert who delivers popular scripting workshops to Microsoft customers and employees worldwide. He's written several books on Windows scripting, including Windows PowerShell 2.0 Best Practices, Microsoft Windows PowerShell Step By Step, and Microsoft VBScript Step by Step. Ed is a senior consultant at Microsoft Corporation and writes Hey, Scripting Guy!, one of the most popular TechNet blogs.
Table of Contents
Acknowledgments; About This Book; A Practical Approach to Scripting; Is This Book for Me?; Outline of This Book; Finding Your Best Starting Point; About the Companion CD; System Requirements; Technical Support; Chapter 1: Overview of Windows PowerShell; 1.1 Understanding Windows PowerShell; 1.2 Using Cmdlets; 1.3 Using Command Line Utilities; 1.4 Security Issues with Windows PowerShell; 1.5 Working with Windows PowerShell; 1.6 Supplying Options for Cmdlets; 1.7 Working with the Help Options; 1.8 Exploring Commands: Step-by-Step Exercises; 1.9 One Step Further: Obtaining Help; 1.10 Chapter 1 Quick Reference; Chapter 2: Using Windows PowerShell Cmdlets; 2.1 Understanding the Basics of Cmdlets; 2.2 Leveraging the Power of Get-Command; 2.3 Using the Get-Member Cmdlet; 2.4 Using the New-Object Cmdlet; 2.5 Creating a PowerShell Profile; 2.6 Working with Cmdlets: Step-by-Step Exercises; 2.7 One Step Further: Working with New-Object; 2.8 Chapter 2 Quick Reference; Chapter 3: Leveraging PowerShell Providers; 3.1 Identifying the Providers; 3.2 Understanding the Alias Provider; 3.3 Understanding the Certificate Provider; 3.4 Understanding the Environment Provider; 3.5 Understanding File System Provider; 3.6 Understanding the Function Provider; 3.7 Understanding the Registry Provider; 3.8 Understanding the Variable Provider; 3.9 Exploring the Certificate Provider: Step-by-Step Exercises; 3.10 One Step Further: Examining the Environment Provider; 3.11 Chapter 3 Quick Reference; Chapter 4: Using PowerShell Scripts; 4.1 Why Write Windows PowerShell Scripts; 4.2 Enabling Script Support; 4.3 Understanding Variables and Constants; 4.4 Looping Through Code; 4.5 Making Decisions; 4.6 Creating Multiple Folders: Step-by-Step Exercises; 4.7 One Step Further: Deleting Multiple Folders; 4.8 Chapter 4 Quick Reference; Chapter 5: Using WMI; 5.1 Understanding the WMI Model; 5.2 Working with Objects and Namespaces; 5.3 Listing WMI Providers; 5.4 Working with WMI Classes; 5.5 Querying WMI; 5.6 Obtaining Service Information: Step-by-Step Exercises; 5.7 One Step Further: Working with Printers; 5.8 Chapter 6 Quick Reference; Chapter 6: Querying WMI; 6.1 Alternate Ways to Connect to WMI; 6.2 Tell Me Everything About Everything!; 6.3 Selective Data from All Instances; 6.4 Selecting Multiple Properties; 6.5 Choosing Specific Instances; 6.6 Utilizing an Operator; 6.7 Where Is the Where?; 6.8 Working with Software: Step-by-Step Exercises; 6.9 One Step Further: Windows Environment Settings; 6.10 Chapter 6 Quick Reference; Chapter 7: Working with Active Directory; 7.1 Creating Objects in Active Directory; 7.2 Creating Users; 7.3 Working with Users; 7.4 Creating the Address Page; 7.5 Deleting Users; 7.6 Creating Multiple Organizational Units: Step-by-Step Exercises; 7.7 One Step Further: Creating Multivalued Users; 7.8 Chapter 7 Quick Reference; Chapter 8: Leveraging the Power of ADO; 8.1 Connecting to Active Directory with ADO; 8.2 Creating More Effective Queries; 8.3 Searching for Specific Types of Objects; 8.4 What Is Global Catalog?; 8.5 Creating an ADO Query into Active Directory: Step-by-Step Exercises; 8.6 One Step Further: Controlling How a Script Executes Against Active Directory; 8.7 Chapter 8 Quick Reference; Chapter 9: Managing Exchange 2007; 9.1 Exploring the Exchange 2007 Cmdlets; 9.2 Configuring Recipient Settings; 9.3 Managing Storage Settings; 9.4 Managing Logging; 9.5 Creating User Accounts: Step-by-Step Exercises; 9.6 One Step Further: Configuring Message Tracking; 9.7 Chapter 9 Quick Reference; Cmdlets Installed with Windows PowerShell; Cmdlet Naming; Translating VBScript to Windows PowerShell;