Microsoft® Windows PowerShell™ Step By Step

Book description

Learn Microsoft Windows PowerShell —one step at a time—with practical, hands-on instruction from Microsoft’s leading scripting trainer, Ed Wilson. Work at your own pace and build practical system administration skills as you learn how to use Windows PowerShell to administer Microsoft Windows®, Microsoft Exchange, and other Microsoft technologies. You will learn how to write your first Windows PowerShell commands and scripts to automate setup, deployment, and administration. This guide features self-paced learning labs and dozens of adaptable sample scripts you can use on the job.

Table of contents

  1. Microsoft® Windows PowerShell Step by Step
    1. Acknowledgments
    2. About This Book
      1. A Practical Approach to Scripting
      2. Is This Book for Me?
      3. Outline of This Book
      4. Finding Your Best Starting Point
      5. About the Companion CD
        1. Installing the Scripts on Your Computer
        2. Uninstalling the Scripts
      6. System Requirements
      7. Technical Support
    3. 1. Overview of Windows PowerShell
      1. Understanding Windows PowerShell
      2. Using Cmdlets
        1. Installing Windows PowerShell
        2. Deploying Windows PowerShell
      3. Using Command Line Utilities
      4. Security Issues with Windows PowerShell
        1. Controlling Execution of PowerShell Cmdlets
        2. Confirming Commands
        3. Suspending Confirmation of Cmdlets
      5. Working with Windows PowerShell
        1. Accessing Windows PowerShell
        2. Configuring Windows PowerShell
      6. Supplying Options for Cmdlets
      7. Working with the Help Options
      8. Exploring Commands: Step-by-Step Exercises
      9. One Step Further: Obtaining Help
      10. Chapter 1 Quick Reference
    4. 2. Using Windows PowerShell Cmdlets
      1. Understanding the Basics of Cmdlets
        1. Using the Get-ChildItem Cmdlet
        2. Using the Format-Wide Cmdlet
      2. Leveraging the Power of Get-Command
      3. Using the Get-Member Cmdlet
      4. Using the New-Object Cmdlet
      5. Creating a PowerShell Profile
      6. Working with Cmdlets: Step-by-Step Exercises
      7. One Step Further: Working with New-Object
      8. Chapter 2 Quick Reference
    5. 3. Leveraging PowerShell Providers
      1. Identifying the Providers
      2. Understanding the Alias Provider
      3. Understanding the Certificate Provider
      4. Understanding the Environment Provider
      5. Understanding File System Provider
      6. Understanding the Function Provider
      7. Understanding the Registry Provider
      8. Understanding the Variable Provider
      9. Exploring the Certificate Provider: Step-by-Step Exercises
      10. One Step Further: Examining the Environment Provider
      11. Chapter 3 Quick Reference
    6. 4. Using PowerShell Scripts
      1. Why Write Windows PowerShell Scripts
      2. Enabling Script Support
        1. Running Windows PowerShell Scripts
      3. Understanding Variables and Constants
        1. Use of Variables
        2. Use of Constants
      4. Looping Through Code
        1. Using the ForEach-Object Cmdlet
        2. Using the For Statement
        3. Using Do … While
        4. Using Do … Until
      5. Making Decisions
        1. Using If … Elseif … Else
        2. Using Switch
      6. Creating Multiple Folders: Step-by-Step Exercises
      7. One Step Further: Deleting Multiple Folders
      8. Chapter 4 Quick Reference
    7. 5. Using WMI
      1. Understanding the WMI Model
      2. Working with Objects and Namespaces
      3. Listing WMI Providers
      4. Working with WMI Classes
      5. Querying WMI
      6. Obtaining Service Information: Step-by-Step Exercises
      7. One Step Further: Working with Printers
      8. Chapter 6 Quick Reference
    8. 6. Querying WMI
      1. Alternate Ways to Connect to WMI
      2. Tell Me Everything About Everything!
      3. Selective Data from All Instances
      4. Selecting Multiple Properties
      5. Choosing Specific Instances
      6. Utilizing an Operator
      7. Where Is the Where?
      8. Working with Software: Step-by-Step Exercises
      9. One Step Further: Windows Environment Settings
      10. Chapter 6 Quick Reference
    9. 7. Working with Active Directory
      1. Creating Objects in Active Directory
        1. Creating an Organizational Unit
        2. ADSI Providers
        3. LDAP Names
        4. Binding
      2. Creating Users
      3. Working with Users
        1. General User Information
      4. Creating the Address Page
      5. Deleting Users
      6. Creating Multiple Organizational Units: Step-by-Step Exercises
      7. One Step Further: Creating Multivalued Users
      8. Chapter 7 Quick Reference
    10. 8. Leveraging the Power of ADO
      1. Connecting to Active Directory with ADO
      2. Creating More Effective Queries
        1. Using Alternative Credentials
        2. Modifying Search Parameters
      3. Searching for Specific Types of Objects
      4. What Is Global Catalog?
        1. Using the SQL Dialect to Query Active Directory
      5. Creating an ADO Query into Active Directory: Step-by-Step Exercises
      6. One Step Further: Controlling How a Script Executes Against Active Directory
      7. Chapter 8 Quick Reference
    11. 9. Managing Exchange 2007
      1. Exploring the Exchange 2007 Cmdlets
      2. Configuring Recipient Settings
        1. Creating the User and the Mailbox
        2. Reporting User Settings
      3. Managing Storage Settings
        1. Examining the Database
      4. Managing Logging
      5. Creating User Accounts: Step-by-Step Exercises
      6. One Step Further: Configuring Message Tracking
      7. Chapter 9 Quick Reference
    12. A. Cmdlets Installed with Windows PowerShell
    13. B. Cmdlet Naming
    14. C. Translating VBScript to Windows PowerShell
    15. Index

Product information

  • Title: Microsoft® Windows PowerShell™ Step By Step
  • Author(s):
  • Release date: May 2007
  • Publisher(s): Microsoft Press
  • ISBN: 9780735623958