Acquisitions Editor: Agatha Kim
Development Editor: Dick Margulis
Technical Editor: Sarah Dutkiewicz
Production Editor: Liz Britten
Copy Editor: Kim Wimpsett
Editorial Manager: Pete Gaughan
Production Manager: Tim Tate
Vice President and Executive Group Publisher: Richard Swadley
Vice President and Publisher: Neil Edde
Book Designer: Franz Baumhackl
Proofreader: Word One, New York
Indexer: Jack Lewis
Project Coordinator, Cover: Katie Crocker
Cover Designer: Ryan Sneed
Cover Image: Petrovich9 / iStockPhoto
Copyright 2011 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-118-01386-1 (Cloth)
ISBN: 978-1-118-10306-7 (ebk)
ISBN: 978-1-118-10308-1 (ebk)
ISBN: 978-1-118-10309-8 (ebk)
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read.
For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at (877) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.
Library of Congress Cataloging-in-Publication Data is available from the publisher.
TRADEMARKS: Wiley, the Wiley logo, and the Sybex logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Microsoft, Windows Server, and Windows PowerShell are trademarks or registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.
Dear Reader
Dear Reader,
Thank you for choosing Automating Windows Server 2008 R2 with Windows PowerShell 2.0. This book is part of a family of premium-quality Sybex books, all of which are written by outstanding authors who combine practical experience with a gift for teaching.
Sybex was founded in 1976. More than 30 years later, we're still committed to producing consistently exceptional books. With each of our titles, we're working hard to set a new standard for the industry. From the paper we print on, to the authors we work with, our goal is to bring you the best books available.
I hope you see all that reflected in these pages. I'd be very interested to hear your comments and get your feedback on how we're doing. Feel free to let me know what you think about this or any other Sybex book by sending me an email at . Customer feedback is critical to our efforts at Sybex.
To Deb, my strength and heart, thank you so much for all of your unwavering love and support. I would not be who I am today without you. I love you.
To Nicole, Mitchell, and Caitlin, thank you for teaching me the meaning of grace. I love you all very much.
Matt
To Kevin, my wonderful husband who survived my talks about PowerShell from a developer's perspective while writing, offered suggestions when I needed another person's real-world IT perspective, and has been very supportive of me through my wrediting process.
Sarah
Acknowledgments
Being able to write this book has been a blessing, and I could not have done it without a lot of top-notch help. First, I would like to thank my fabulous technical editor and coauthor, Sarah, for going on this journey with me. Sarah, your knowledge and insight are inspiring. Thank you for making sure this book is rock solid. Second, I would like to thank Dick Margulis. Dick, you truly are an editor extraordinaire who I have thoroughly enjoyed working with. I hope I did not drive you to nutty with all of my great new features. Thank you, sir. Lastly, a huge thanks to Agatha Kim not only for giving me my first opportunity to write a book but also for encouraging me to write this book. Thank you so much for your guidance and support over the past few years.
Matt
I would like to thank my IT friends for encouraging me and inspiring me as I explored many of the topics in this book. Thanks to Jay R. Wren, my tech editor for the appendixes. As always, Jay made sure I didn't stray technically and inspired new changes. Thanks to all of our editors at Sybex, and especially thanks to Dick Margulis, our development editor, who shepherded us when we got carried away. Most of all, I would like to thank my awesome coauthor and great friend, Matt Hester, for the many commas and great features that I had to cut out while tech editing, the laughs throughout the process, and the advice when it came to writing the appendixes. Matt inspired me to create the term wreditingwriting and editing, as I had originally been set as a tech editor for Chapters 112 and later was added as a coauthor. It has been a great adventure, and I look forward to more adventures with Matt!
Sarah
About the Authors
Matt Hester is a seasoned Information Technology Professional Evangelist for Microsoft. Matt has been involved in the IT Pro community for more than 15 years. Matt is a skilled and experienced evangelist presenting to audiences nationally and internationally. Prior to joining Microsoft, Matt was a highly successful Microsoft Certified Trainer for more than eight years. After joining Microsoft, Matt has continued to be heavily involved in IT Pro community as an IT Pro Evangelist. In his role at Microsoft, Matt has presented to audiences in excess of 5,000 and as small as 10. Matt has also written four articles for TechNet magazine, and his first book was Microsoft Windows Server 2008 R2 Administration Instant Reference . Matt is a movie buff with a massive DVD collection; he also runs marathons and dreams of joining the PGA tour. Matt cites his father as his role model: The older I get, the smarter he gets. Funny how that works.