BN.com Gift Guide

Windows PowerShell Unleashed

( 2 )

Overview

A new edition of this title is available, ISBN-10: 0672329883 ISBN-13: 9780672329883

PowerShell is one of the most exciting new products to come out of Microsoft in a long time. It is both a new scripting language and a command-line shell. People who have seen the demos have been extremely impressed by the power it brings to admins to automate and customize their regular tasks. PowerShell will be used as the basis for all Windows administrative scripting in the future, starting ...

See more details below
Paperback (Second)
$33.12
BN.com price
(Save 33%)$49.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (10) from $10.50   
  • New (5) from $32.09   
  • Used (5) from $10.50   
Windows PowerShell Unleashed

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$22.99
BN.com price
(Save 42%)$39.99 List Price

Overview

A new edition of this title is available, ISBN-10: 0672329883 ISBN-13: 9780672329883

PowerShell is one of the most exciting new products to come out of Microsoft in a long time. It is both a new scripting language and a command-line shell. People who have seen the demos have been extremely impressed by the power it brings to admins to automate and customize their regular tasks. PowerShell will be used as the basis for all Windows administrative scripting in the future, starting with Exchange 2007 and Vista. IT Pros have been hungering for whatever PowerShell information they can get their hands on.

This book first focuses on PowerShell basics, how it relates to existing Windows scripting practices, and how your existing knowledge can be translated into PowerShell knowledge. After gaining insight into PowerShell, you are presented with transferable PowerShell scripting examples. The goal of presenting these examples is to outline methods of using PowerShell to manage Windows Server, Active Directory, and Exchange Server 2007 that have not been explained or touched upon by other sources.

DETAILED INFORMATION ON HOW TO…

  • Understand PowerShell's basics and background
  • Script using PowerShell
  • Transfer existing Windows scripting skills to PowerShell
  • Analyze how PowerShell can be used to solve real-world problems
  • Manage the Windows File System, the Windows registry, Active Directory, and Exchange using PowerShell
  • Manage Systems using WMI and PowerShell
  • Customize PowerShell to meet your needs
  • Script using best practices.
  • Digitally sign your PowerShell scripts

Introduction

Part I Introduction to PowerShell

1 Introduction to Shells and PowerShell

2 PowerShell Basics

3 PowerShell: A More In-Depth Look

4 Code Signing

5 PowerShell Scripting Best Practices

Part II Translating Your Existing Knowledge into PowerShell

6 PowerShell and the File System

7 PowerShell and the Registry

8 PowerShell and WMI

9 PowerShell and Active Directory

Part III Using PowerShell to Meet Your Automation Needs

10 Using PowerShell in the Real-World

Index

Read More Show Less

Product Details

  • ISBN-13: 9780672329883
  • Publisher: Sams
  • Publication date: 12/19/2008
  • Series: Unleashed Series
  • Edition description: Second
  • Edition number: 2
  • Pages: 510
  • Sales rank: 1,424,271
  • Product dimensions: 7.00 (w) x 9.10 (h) x 1.10 (d)

Meet the Author

With more than nine years of experience in the information technology sector, Tyson

Kopczynski has become a specialist in Active Directory, Group Policy, Windows scripting,

Windows Rights Management Services, PKI, and information technology security practices.

Tyson has been a contributing author for such books as Microsoft Internet Security and

Acceleration (ISA) Server 2004 Unleashed and Microsoft Windows Server 2003 Unleashed (R2

Edition). In addition, he has written detailed technical papers and guides covering the

various in-the-field technologies he works with extensively. As a consultant at Convergent

Computing (CCO), Tyson has been able to work with the next generation of Microsoft

technologies since their inception and played a key role in expanding scripting and development

practices at CCO. Tyson also holds the SANS Security Essentials Certification

(GSEC), Microsoft Certified Systems Engineer (MCSE) Security certification, CompTIA

Security+ certification, and SANS Certified Incident Handler (GCIH) certification.

Read More Show Less

Read an Excerpt

IntroductionIntroduction

Well, we are back for yet another PowerShell Unleashed book. However, unlike just a simple revision of the existing book, which most likely would have resulted in only just a few updated chapters, I decided to instead treat this release in the series as almost a completely new book. Granted, the Community Technology Release (CTP) of PowerShell 2.0 did help drive the need to update all aspects of this edition. Nonetheless, there was also a lot of feedback (some positive and some negative) about how the first book could be improved.

So, based on this feedback and the looming PowerShell 2.0 feature list, I set about making a major revision to the book. To start off right, I decided to address how the PowerShell language was covered in the series. After all, the first book in the series was script heavy, but lacking when it came to explaining some of the basics about the PowerShell language. Additionally, we wanted to go into greater detail about how PowerShell could be used to manage Windows resources while further addressing some of the finer technical details of PowerShell’s architecture. Needless to say, all of these changes required a reorganization to not only the layout of the book, but also its size.

The bottom line, in this new edition, there are six completely new chapters with the rest of the existing chapters either being extensively rewritten or updated. With all this extra content, the book needed additional authors to jump on board and help pound out the book’s technical prose. Thus, joining me on this book as coauthors were Marco Shaw (PowerShell MVP) and Peter Handley (contributing author from the first book). Together, Marco and Peter made great additions to this book and infused fantastic ideas together with even better content—all while writing their chapters.

Finally, the primary goal of this book was to start down the path of explaining the features found in the future 2.0 release of PowerShell. After all, with the 2.0 CTP release late last year, the PowerShell product team ignited our imaginations with the possibilities for what might come down the road (remoting). So, we simply had to do our best to explain the new features. However, given that the 2.0 version is still just a CTP and not a beta, we also walked down a slippery slope, considering that some of these features may not exist in the PowerShell 2.0 RTM. Naturally, like a good reporter might do, we did our best. In the end, we tried to include 2.0 content where applicable while also dedicating an entire chapter to only 2.0 features deemed too important to ignore or voted most likely to survive the beta.

We hope our efforts result in a more comprehensive PowerShell book that can act as both a reference for the current PowerShell 1.0 release while also providing insight into where PowerShell might go with the 2.0 release.

Who Is This Book’s Intended Audience?

This Unleashed book is intended for an intermediate level of systems administrators who have invested time and energy learning Windows scripting and want to translate those skills into PowerShell skills while learning how it can meet their real-world needs. This book has been written so that anyone with a scripting background can understand what PowerShell is and how to use it, but by no means is it meant to be a complete PowerShell reference. Instead, think of it as a resource for learning how PowerShell can be applied in your own environment. Therefore, the structure of this book reflects that focus by including numerous command examples and working scripts.

How This Book Is Organized

The book is divided into the following three parts:


  • Part I, “Introduction to PowerShell”—In this section, you are introduced to PowerShell and some of its internal workings. Topics covered include items such as why PowerShell came into existence, general concepts about PowerShell and how it is constructed, and an in-depth review of PowerShell security.
  • Part II, “Using PowerShell”—In this section, you learn more about the PowerShell scripting language, how to use PowerShell to manage Windows resources, and important best practices to follow when using PowerShell. Specific topics covered range from working with the Windows file system, the Registry, permissions, strings, and Windows Management Instrumentation (WMI) to understanding PowerShell language concepts such as loops, functions, arrays, and so on.
  • Part III, “Managing Microsoft Technologies with PowerShell”—In this section, you learn how PowerShell can be used to manage Microsoft technologies. Topics covered include using PowerShell to manage Active Directory, Exchange Server 2007, and Systems Center Operations Manager 2007. Additionally, you learn how to programmatically use PowerShell to manage systems and gain insight and understanding into important PowerShell 2.0 features.
    Conventions Used in This Book

Commands, scripts, and anything related to code are presented in a special monospace computer typeface. Bold indicates key terms being defined, and italic is used to indicate variables or for emphasis. Great care has been taken to be consistent in letter case, naming, and structure, with the goal of making command and script examples more readable. In addition, you might find instances in which commands or scripts haven’t been fully optimized. This lack of optimization is for your benefit, as it makes those code samples more intelligible and follows the practice of writing code for others to read.

Other standards used throughout this book are as follows:

Black Code Boxes

These code boxes contain commands that run in a PowerShell or Bash shell session.

Gray Code Boxes

These code boxes contain source code from scripts, configuration files, or other items that aren’t run directly in a shell session.

Please note that although PowerShell can display text in multiple colors, all script output from the examples is printed here in black and white. If you run one of the example scripts on your lab system, the text will be displayed in color.

CAUTION - Cautions alert you to actions that should be avoided.

NOTE - Notes give you additional background information about a topic being discussed.

© Copyright Pearson Education. All rights reserved.


Read More Show Less

Table of Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Part I Introduction to PowerShell

1 Introduction to Shells and PowerShell. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2 PowerShell Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

3 PowerShell: A More In-Depth Look . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

4 Code Signing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

5 PowerShell Scripting Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

Part II Translating Your Existing Knowledge into PowerShell

6 PowerShell and the File System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

7 PowerShell and the Registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

8 PowerShell and WMI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

9 PowerShell and Active Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

Part III Using PowerShell to Meet Your Automation Needs

10 Using PowerShell in the Real-World. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

11 Using PowerShell to Manage Exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

Read More Show Less

Customer Reviews

Average Rating 5
( 2 )
Rating Distribution

5 Star

(2)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted April 17, 2010

    Comprehensive Look at PowerShell 2.0

    While this came out during the PowerShell 2.0 Beta, it is still a comprehensive look at the power behind the 2.0 shell script.

    I would highly recommend purchasing this if you have any desire to learn more about the finer points in shell scripting.

    Was this review helpful? Yes  No   Report this review
  • Posted January 21, 2009

    THE POWERSHELL GAME!!

    How can PowerShell be applied in your own environment? If you want to know, then this book is for you! Authors Tyson Kopczynski, Pete Handley, and Marco Shaw, have done an outstanding job of writing a book that is intended for intermediate level system administrators who have invested time and energy learning Windows scripting and want to translate those skills into PowerShell skills while learning how it can meet their real-world needs.<BR/><BR/><BR/>Authors Kopczynski, Handley and Shaw, begin with an introduction to PowerShell and some of its internal workings. Then, the authors show you how to use the PowerShell scripting language; how to use PowerShell to manage Windows resources; and, important best practices to follow when using PowerShell. Finally, they also show you how PowerShell can be used to manage Microsoft technologies.<BR/><BR/><BR/>This most excellent book has been written so that anyone with a scripting background can understand what PowerShell is and how to use it. Perhaps more importantly, think of this great book as a resource for learning how PowerShell can be applied in your own environment.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)