You are previewing Windows PowerShell® 2.0 Bible.
O'Reilly logo
Windows PowerShell® 2.0 Bible

Book Description

Here's the complete guide to Windows PowerShell 2.0 for administrators and developers

Windows PowerShell is Microsoft's next-generation scripting and automation language. This comprehensive volume provides the background that IT administrators and developers need in order to start using PowerShell automation in exciting new ways. It explains what PowerShell is, how to use the language, and specific ways to apply PowerShell in various technologies.

Windows PowerShell is Microsoft's standard automation tool and something that every Windows administrator will eventually have to understand; this book provides the background necessary to apply PowerShell automation.

  • Covers how to use the language and specific ways to apply PowerShell in a variety of scenarios

  • Addresses new features in the latest version of PowerShell and the additional functionality delivered by new products that provide direct or indirect ways to use PowerShell for scripting and automation purposes

  • Explores the language fundamentals and how to use PowerShell for desktop, server, server application, and virtualization/cloud situations

  • This thorough guide goes well beyond theory to offer real-world information and new scripting techniques, enabling administrators and developers to make the most of PowerShell 2.0.

    Table of Contents

    1. Cover Page
    2. Title page
    3. Copyright
    4. Dedication
    5. About the Authors
    6. About the Technical Editors
    7. Credits
    8. Acknowledgments
    9. Contents at a Glance
    10. Contents
    11. Introduction
      1. Overview of the Book and Technology
      2. How This Book Is Organized
      3. Who Should Read This Book
      4. Tools You Will Need
      5. Conventions Used in This Book
      6. What's on the Website
      7. Summary
    12. Part I: Introduction
      1. CHAPTER 1: Introduction to Windows PowerShell
        1. Managing Windows — The Challenges of the Past
        2. What Is Windows PowerShell?
        3. Key Windows PowerShell Concepts
        4. Discovery and the Community
        5. Windows PowerShell Language Constructs
        6. Formatting Output
        7. Scripting
        8. Extending Windows PowerShell with Snap-ins and Modules
        9. Installing Windows PowerShell
        10. Customizing Windows PowerShell with Profiles
        11. Summary
      2. CHAPTER 2: What's New in Windows PowerShell V2
        1. The Road to V2
        2. Using Remoting
        3. Working with Jobs
        4. Using Advanced Functions
        5. Working with Modules
        6. Making Use of Eventing
    13. Part II: Windows Desktop
      1. CHAPTER 3: Managing Windows 7
        1. Troubleshooting Windows 7 with Windows PowerShell
        2. Managing Windows Search
        3. Checking HotFix Status
        4. Managing Files and Folders
        5. Summary
      2. CHAPTER 4: Managing Microsoft Office 2010
        1. Introducing the Office COM Objects
        2. Automating Microsoft Word
        3. Working with Microsoft Excel Spreadsheets
        4. Navigating Microsoft Outlook
        5. Additional Office COM Examples
        6. Summary
      3. CHAPTER 5: Managing Security
        1. NTFS Permissions
        2. Share Permissions
        3. Registry Settings
        4. Managing the Windows Firewall
        5. Enabling Remote Desktop
        6. Summary
      4. CHAPTER 6: Managing and Installing Software
        1. Listing Software
        2. Installing Software
        3. Removing Software
        4. Summary
    14. Part III: Server Management
      1. CHAPTER 7: Managing Windows Server 2008 R2
        1. What's New in Server 2008 R2
        2. Managing Server Features and Roles
        3. Running Best Practice Analyzer Scans
        4. Enabling Remoting
        5. Managing Windows Backup
        6. Deleting Backup Jobs
        7. Managing Server Migration
        8. Managing AppLocker
        9. Summary
      2. CHAPTER 8: Performing Basic Server Management
        1. Discovering Server Configuration
        2. Managing Scheduled Tasks
        3. Checking Hotfix Status
        4. Gathering Data from Event Logs
        5. Using System Time
      3. CHAPTER 9: Performing Advanced Server Management
        1. Managing Command-Line Services
        2. Managing Processes
        3. Reading the Registry
        4. Setting Registry Values
        5. Validating Network Configuration on Remote Servers
        6. Gathering Data from Performance Counters
        7. Modifying Regional Settings on Multiple Computers
        8. Managing Local Accounts
        9. Configuring Remote DCOM
        10. Summary
      4. CHAPTER 10: Managing Active Directory
        1. Installing and Using the Cmdlets
        2. Using the Active Directory Provider
        3. Querying Active Directory
        4. User and Group Administration
        5. Managing Organizational Units
        6. Password Policies
        7. Managing the Rest of Active Directory
        8. Managing Active Directory with the ActiveRoles Management Shell
        9. Summary
      5. CHAPTER 11: Managing Group Policy
        1. Installing and Using the Cmdlets
        2. Getting Policy Information
        3. Creating and Configuring GPOs
        4. Backing Up and Restoring GPOs
        5. Group Policy Security
        6. Summary
    15. Part IV: Server Applications
      1. CHAPTER 12: Managing Microsoft Exchange Server
        1. Installing the Cmdlets on a Workstation
        2. What's New in Microsoft Exchange Server 2010
        3. Managing Microsoft Exchange Server Permissions
        4. Administering Objects
        5. Managing Databases
        6. Discovering Space Used by Disabled Mailboxes
        7. Managing Quotas
        8. Managing Microsoft Exchange Server Remotely
        9. Email Address Policies
        10. Interoperating with Earlier Versions of Microsoft Exchange
        11. Using Filters
        12. Managing Recipient Scope
      2. CHAPTER 13: Managing SQL Server 2008 R2
        1. PowerShell Basics for SQL Server
        2. Managing SQL Server Services
        3. Querying SQL Server
        4. Loading Data
        5. Getting SQL Server Information
        6. Gathering Performance Counters
        7. Scripting Objects
        8. Scheduling Windows PowerShell SQL Server Agent Job Steps
        9. Getting Space Usage Information
        10. Managing Registrations in SQL Server Management Studio
        11. Summary
      3. CHAPTER 14: Managing Microsoft SharePoint 2010 Server
        1. Installing and Using the Cmdlets
        2. Remoting with SharePoint
        3. Automating Site Administration
        4. Using SharePoint Lists
        5. Deploying Developer Code
        6. Administering Workflows
        7. Backing Up and Restoring
        8. Search and Timer Jobs
        9. Kicking Off Crawls
        10. Summary
      4. CHAPTER 15: Managing Internet Information Services 7
        1. Installing the Necessary Components
        2. Browsing IIS :\
        3. Scripting Deployments and Changes
        4. Managing IIS
        5. Digesting Log Files
        6. Summary
      5. CHAPTER 16: Managing System Center Operations Manager 2007 R2
        1. Exploring the Available Cmdlets
        2. Working with Alerts
        3. Automating Maintenance Mode
        4. Deploying and Configuring OpsMgr Agents and Network Devices
        5. Exploring Discovered Inventory Data
        6. Windows PowerShell and the Command Notification Channel
        7. Overrides
        8. Notifications
        9. Monitoring Scripts in Windows PowerShell
        10. Sample OpsMgr Scripts and Other Community Resources
      6. CHAPTER 17: Managing Microsoft Deployment Toolkit 2010
        1. Installing and Using the Cmdlets
        2. Creating and Populating the Deployment Share
        3. Managing the Deployment Share
        4. Summary
      7. CHAPTER 18: Managing Citrix XenApp 6
        1. Installing and Using the Cmdlets
        2. What's New in XenApp 6
        3. Working with Administrators
        4. Providing Applications
        5. Managing Sessions
        6. Maintaining Servers
        7. Applying Load-Balancing Policies
        8. Worker Groups
        9. Summary
      8. CHAPTER 19: Managing Citrix XenDesktop 5
        1. Introducing Citrix XenDesktop 5
        2. Administrators
        3. Catalogs
        4. Provisioning
        5. Desktop Groups
        6. Hosts
        7. Summary
    16. Part V: Virtualization and Cloud Computing
      1. CHAPTER 20: Managing Hyper-V 2008 R2
        1. Hyper-V Management Interfaces
        2. Managing Hosts
        3. Managing Virtual Machines
        4. Summary
      2. CHAPTER 21: Managing System Center Virtual Machine Manager 2008 R2
        1. Working with System Center Virtual Machine Manager 2008 R2
        2. Working with Host Servers
        3. Managing Clusters
        4. Working with Virtual Machines
        5. Libraries
        6. Summary
      3. CHAPTER 22: Managing Windows Azure
        1. Installing and Using the Windows Azure Service Manager Cmdlets
        2. Managing Hosted Services
        3. Managing Certificates
        4. Windows Azure Diagnostics
        5. Summary
      4. CHAPTER 23: Managing VMware vSphere PowerCLI
        1. Installing and Using the Cmdlets
        2. Managing ESX and ESXi
        3. Managing Virtual Machines
        4. Managing vCenter
        5. Everything Else
        6. Summary
    17. Part VI: Beyond the Console
      1. CHAPTER 24: Creating User Interfaces
        1. Working with Text Mode UI
        2. Building a Simple UI in Windows PowerShell Using Windows Forms
        3. Using Windows Forms Controls
        4. Using Windows PowerShell and PrimalForms
        5. Using Windows Presentation Foundation
        6. Summary
      2. CHAPTER 25: Using the Windows PowerShell ISE
        1. Key Features of the ISE
        2. Using the ISE
        3. Debugging with the ISE
        4. Extending the ISE
        5. Third-Party Alternatives to the ISE
        6. Summary
    18. Index