Table of Contents

Introduction

Part I Introduction to PowerShell

1. Introduction to Shells

What Is a Shell?

A Shell History

Enter PowerShell

New Capabilities in PowerShell 2.0 CTP2

Summary

2. Basic PowerShell Concepts

Getting Started

Understanding the Command-Line Interface (CLI)

Understanding Cmdlets

Getting Help

Understanding Variables

Understanding Aliases

Creating Your First Script

Summary

3. Advanced PowerShell Concepts

Working with the .NET Framework

Understanding the Pipeline

The Extended Type System (ETS)

Summary

4. Other Key PowerShell Concepts

Formatting Output

Providers

Profiles

Scopes

Dot Sourcing

Library Files

Summary

5. Understanding PowerShell Security

PowerShell Default Security

Execution Policies

Code Signing

PowerShell Security Best Practices

PowerShell 2.0 CTP2 and Windows Remote Management (WinRM)

Summary

Part II Using PowerShell

6. The PowerShell Language

Expressions and Operators

Escape Sequences

Error Handling

Managing Elements with Arrays

Creating Functions

Understanding Filters

Controlling Script Flow with Loops

Using Logic and Making Decisions

Building Scripts with Scriptblocks

Summary

7. PowerShell and Strings

System.String

[String] Type Accelerator

Select-String Cmdlet

Simple Operations

System.String Members

Wildcards

Comparison Operators

Regular Expressions

Replace Operators

[RegEx] Type Accelerator

2.0 CTP: Join and Split

Format Operator

Summary

8. PowerShell and the File System

Core Cmdlets

Navigating the File System

Managing Drives

Managing Folders

Managing Files

Working with XML Files

Working with CSV Files

Scenario: Automating File System Management

Summary

9. PowerShell and Permissions

WSH and Permissions

PowerShell and Permissions

Summary

10. PowerShell and the Registry

Registry Management in PowerShell

Registry Transactions

Simplifying Registry Management

Using 2.0 CTP Features

Summary

11. PowerShell and WMI

Comparing WMI Usage Between WSH and PowerShell

Working with WMI

PowerShell 2.0 Changes

Scripting Scenario: MonitorMSVS.ps1

Summary

12. PowerShell Scripting Best Practices

PowerShell Configuration and Usage Recommendations

Script Development

Script Design

Standards for Scripting

Summary

Part III Managing Microsoft Technologies with PowerShell

13. PowerShell as a Management Interface

Getting Started

The PowerShell SDK

Creating a Custom Cmdlet

Creating a Custom Snap-In

Creating Custom Parameters

Advanced Parameter Functionality

Input Validation

Supporting Get-Help

Runspaces

Scenario: Geocoding in MMC 3.0

Summary

14. PowerShell and Active Directory

Understanding the Interfaces

Managing Objects

Searching for Objects

Scripting Scenario: ChangeLocalAdminPassword.ps1

Summary

15. PowerShell and Exchange Server 2007

Accessing the Exchange Management Shell (EMS)

Using the Exchange Management Shell

Scripting Scenario: GetDatabaseSizeReport.ps1

Scripting Scenario: GetEvent1221Info.ps1

Scripting Scenario: ProvisionExchangeUsers.ps1

Summary

16. PowerShell and System Center Operations Manager 2007

Operations Manager PowerShell Integration

The Object Tree

Agent Cmdlets

Task Cmdlets

Management Server Cmdlets

Maintenance Mode Cmdlets

Comprehensive Operations Manager Cmdlet List

Summary

17. PowerShell 2.0 Features

Remoting

Background Jobs

Graphical PowerShell

Script Cmdlets

Out-GridView Cmdlet

Script Internationalization

DATA Sections

Modules

Script Debugging

Summary

A. The PSShell.ps1 Script

Component One: Shell Replacement

Component Two: PSShell.exe

Component Three: PSShell.ps1

Putting It All Together

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.66.67