Windows PowerShell Scripting Guide

Windows PowerShell Scripting Guide

by Ed Wilson

Paperback

$42.08 $49.99 Save 16% Current price is $42.08, Original price is $49.99. You Save 16%.

Overview

Get practical guidance for using Windows PowerShell to manage Windows Vista and Windows Server 2008. Written by Ed Wilson, a leading scripting expert and trainer at Microsoft, this reference offers a task-based approach to help you find the information you need for day-to-day tasks. With more than 200 scripts, it offers rich examples that administrators can customize for their own environment and needs. The scripts range in complexity from one-line commands, to full-blown scripts with managed output and command-line arguments—examples that are applicable to all skill levels. Includes a companion CD with fully searchable eBook, sample scripts, and other resources for managing your Windows-based environment.

For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.

Product Details

ISBN-13: 9780735622791
Publisher: Microsoft Press
Publication date: 01/26/2008
Pages: 688
Product dimensions: 7.40(w) x 9.00(h) x 1.70(d)

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;
Introduction;
Is This Book for Me?;
About the Companion CD;
System Requirements;
Technical Support;
Chapter 1: The Shell in Windows PowerShell;
1.1 Installing Windows PowerShell;
1.2 Interacting with the Shell;
1.3 Introducing Cmdlets;
1.4 Configuring Windows PowerShell;
1.5 Security Issues with Windows PowerShell;
1.6 Supplying Options for Cmdlets;
1.7 Working with Get-Help;
1.8 Working with Aliases to Assign Shortcut Names to Cmdlets;
1.9 Additional Uses of Cmdlets;
1.10 Summary;
Chapter 2: Scripting Windows PowerShell;
2.1 Why Use Scripting?;
2.2 Configuring the Scripting Policy;
2.3 Running Windows PowerShell Scripts;
2.4 Use of Variables;
2.5 Use of Constants;
2.6 Using Flow Control Statements;
2.7 Using the For Statement;
2.8 Using Decision-Making Statements;
2.9 Working with Data Types;
2.10 Unleashing the Power of Regular Expressions;
2.11 Using Command-Line Arguments;
2.12 Summary;
Chapter 3: Managing Logs;
3.1 Identifying the Event Logs;
3.2 Reading the Event Logs;
3.3 Perusing General Log Files;
3.4 Searching the Event Log;
3.5 Managing the Event Log;
3.6 Examining WMI Event Logs;
3.7 Writing to Event Logs;
3.8 Creating Your Own Event Logs;
3.9 Summary;
Chapter 4: Managing Services;
4.1 Documenting the Existing Services;
4.2 Setting the Service Configuration;
4.3 Desired Configuration Maintenance;
4.4 Confirming the Configuration;
4.5 Producing an Exception Report;
4.6 Summary;
Chapter 5: Managing Shares;
5.1 Documenting Shares;
5.2 Auditing Shares;
5.3 Modifying Shares;
5.4 Creating New Shares;
5.5 Creating Multiple Shares;
5.6 Deleting Shares;
5.7 Deleting Only Unauthorized Shares;
5.8 Summary;
Chapter 6: Managing Printing;
6.1 Inventorying Printers;
6.2 Reporting on Printer Ports;
6.3 Identifying Printer Drivers;
6.4 Installing Printer Drivers;
6.5 Summary;
Chapter 7: Desktop Maintenance;
7.1 Maintaining Desktop Health;
7.2 Monitoring Disk Space Utilization;
7.3 Monitoring Performance;
7.4 Summary;
Chapter 8: Networking;
8.1 Working with Network Settings;
8.2 Configuring Network Adapter Settings;
8.3 Configuring the Windows Firewall;
8.4 Summary;
Chapter 9: Configuring Desktop Settings;
9.1 Working with Desktop Configuration Issues;
9.2 Setting Screen Savers;
9.3 Managing Desktop Power Settings;
9.4 Changing the Power Scheme;
9.5 Summary;
Chapter 10: Managing Post-Deployment Issues;
10.1 Setting the Time;
10.2 Configuring the Time Source;
10.3 Enabling User Accounts;
10.4 Creating a Local User Account;
10.5 Configuring the Screen Saver;
10.6 Renaming the Computer;
10.7 Shutting Down or Rebooting a Remote Computer;
10.8 Summary;
Chapter 11: Managing User Data;
11.1 Working with Backups;
11.2 Configuring Offline Files;
11.3 Enabling the Use of Offline Files;
11.4 Working with System Restore;
11.5 Summary;
Chapter 12: Troubleshooting Windows;
12.1 Troubleshooting Startup Issues;
12.2 Displaying Service Dependencies;
12.3 Investigating Hardware Issues;
12.4 Troubleshooting Network Issues;
12.5 Summary;
Chapter 13: Managing Domain Users;
13.1 Creating Organizational Units;
13.2 Creating Domain Users;
13.3 Modifying User Attributes;
13.4 Creating Users from a .csv File;
13.5 Creating Domain Groups;
13.6 Adding a User to a Domain Group;
13.7 Adding Multiple Users with Multiple Attributes;
13.8 Summary;
Chapter 14: Configuring the Cluster Service;
14.1 Examining the Clustered Server;
14.2 Managing Nodes;
14.3 Summary;
Chapter 15: Managing Internet Information Services;
15.1 Enabling Internet Information Services Management;
15.2 Reporting IIS Configuration;
15.3 Creating a New Web Site;
15.4 Creating a New Application Pool;
15.5 Starting and Stopping Web Sites;
15.6 Summary;
Chapter 16: Working with the Certificate Store;
16.1 Locating Certificates in the Certificate Store;
16.2 Managing Certificates;
16.3 Summary;
Chapter 17: Managing the Terminal Services Service;
17.1 Configuring the Terminal Service Installation;
17.2 Managing Users;
17.3 Summary;
Chapter 18: Configuring Network Services;
18.1 Reporting DNS Settings;
18.2 Configuring DNS Server Settings;
18.3 Reporting DNS Zones;
18.4 Creating DNS Zones;
18.5 Managing WINS and DHCP;
18.6 Summary;
Chapter 19: Working with Windows Server 2008 Server Core;
19.1 Initial Configuration;
19.2 Managing Windows Server 2008 Server Core;
19.3 Summary;
Cmdlet Naming Conventions;
ActiveX Data Object Provider Names;
Frequently Asked Questions;
Scripting Guidelines;
General Script Construction;
General Script Readability;
Formatting Your Code;
General Troubleshooting Tips;

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Windows PowerShell Scripting Guide 4 out of 5 based on 0 ratings. 1 reviews.
Anonymous More than 1 year ago
Excellent read and details on writing PowerShell scripts. Lots of examples and code samples to get the task done.