PUBLISHED BYMicrosoft PressA Division of Microsoft CorporationOne Microsoft WayRedmond, Washington 98052-6399
Copyright © 2003 by Microsoft Corporation
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.
Library of Congress Cataloging-in-Publication DataMicrosoft Windows 2000 Scripting Guide / Microsoft Corporation. p. cm. Includes index. ISBN 0-7356-1867-4 1. Microsoft Windows (Computer file) 2. Operating systems (Computers) I. Microsoft Corporation. QA76.76.O63 M5241322525 2002 005.4’4769--dc21 2002033719
Printed and bound in the United States of America.
1 2 3 4 5 6 7 8 9 QWT 8 7 6 5 4 3
Distributed in Canada by H.B. Fenn and Company Ltd.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to [email protected].
Active Directory, ActiveX, FrontPage, JScript, Microsoft, Microsoft Press, MSDN, MS-DOS, MSN, Notepad, SQL Server, Visual Basic, Visual Studio, Windows, Windows Media, Windows NT, and Win32 are registered trademarks of Microsoft Corporation in the United States and/or other countries. ActivePerl is a registered trademark of the ActiveState Corporation, Apple and Macintosh are registered trademarks of the Apple Corporation, IBM is a registered trademark of International Business Machines Corporation, and NetWare is a registered trademark of the Novell Corporation. Other product and company names mentioned herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.
Information in this document is subject to change without notice.
Microsoft may have patents or pending patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
Acquisitions Editors: Juliana Aldous Atkinson, Martin Delre
Project Editor: Maureen Williams Zimmerman
Body Part No. X08-98407
Thank you to those who contributed to this book:
Microsoft Windows 2000 Scripting Guide
Book Writing Lead: Greg Stemp Writers: Dean Tsaltas, Bob Wells, Ethan Wilansky Technical Writing Manager: Peter Costantini
Book Editing Lead: Carolyn Eller Editors: Anika Nelson, Scott Somohano, Nona Allison, Jim Becker, Bonnie Birger, Dale Callison, Justin Hall, Kate Robinson,Dee Teodoro, Scott Turnbull, Tom Winn, Krista Wall, Shawn Peck, Holly ViolaEditing Managers: Kate O’Leary, Jay Schram
Project Manager: Neil Orint
Production Lead: Jason Hershey Production Specialists: Barbara Arend, Yong Ok Chung, Dean Prince Documentation Tools Software Developers: Cornel Moiceanu, Steve Pyron
Indexer: Caroline Parks
Lead Graphic Designer: Gabriel Varela Designers: Chris Blanton, Rochelle Parry Art Production: Jon Billow
Test Lead: Richard Min Testers: Matt Winberry, Ben Rangel
Windows Lab Administrators: Dave Meyer, Robert Thingwold
Special thanks for laying the groundwork for this book to: Martin DelRe, Lola Gunter
A special recognition to the following technical experts for their exceptional contributions: Alex Angelopolous, Mike Dutra, Mary Gray, Eric Lippert, Ryan Maas, Daryl Wray
A special thanks to the following technical experts who contributed to and supported this effort: Muhammad Arrabi, John Biscevic, Andrew Clinick, David C. Winkler
Director, Windows Server User Assistance: Karen Forster
Resource Kit User Assistance Manager: Pilar Ackerman