Stanek, O’Neill,
Rosen
The book you need to succeed!
VBScript, JScript, and PowerShell—
together in a single, comprehensive
guide!
With more than 300 sample scripts and an extensive
collection of library functions, this book is the most
thorough guide to scripting the Windows operating system
on the market. You’ll discover how scripting can double
your productivity by automating repetitive tasks—and
you’ll find pages of practical VBScript, JScript, and
PowerShell solutions together, chapter by chapter,
throughout the book. With all three powerhouse
programming tools in one comprehensive 800-page
resource, this is the scripting book you need to succeed.
s
Spine: 1.82"
Companion
Web Site
Visit the book’s Web
site at
www.wiley.com/go/powershellbible
and find actual code for the samples
and examples discussed in the book.
Shelving Category:
COMPUTERS /
Programming Languages / General
Reader Level:
Beginning to Advanced
$49.99
USA
$59.99
Canada
www.wiley.com/compbooks
Tap the power of
automation with scripts
Master three scripting
tools with this one guide
Script in Windows and
revolutionize your job
William R. Stanek, James O’Neill, and Jeffrey Rosen
P
o
w
erS
hell,
VBS
cr
ipt,
and JS
cr
ipt
C
• Automate tasks, such as the creation of user accounts or data retrieval,
with scripting
• Master the essentials of the VBScript, JScript, and PowerShell
• Schedule one-time and recurring tasks with network and directory
service scripting
• Work with files, the registry, event logging, ADSI, and
more with PowerShell
• Tap into Windows scripting libraries for file, network, and system utilities
• Examine all related technologies, including ActiveX
®
, Active Directory
®
,
and Windows
®
Management Instrumentation
• Develop prototype applications or procedures rapidly and easily using scripts
Microsoft
®
Microsof
t
®
PowerShell,
VBScript,
and
JScript
Companion Web Site
• Examples, script code, and more
Companion
Web Site
Microsoft
®
PowerShell, VBScript, and JScript
®
Bible
Published by
Wiley Publishing, Inc.
10475
Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-0-470-38680-4
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
Library of Congress Cataloging-in-Publication Data is available from the publisher.
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 please contact our Customer Care Department within the
United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Trademarks: Wiley and the Wiley 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 and
JScript are registered trademarks of Microsoft Corporation in the United States and/or other countries.
All other trade-
marks are the property of their respective owners. Wiley Publishing, Inc. is not associated with any product or vendor
mentioned in this book.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available
in electronic books.
86804ffirs.indd iv
86804ffirs.indd iv
1/22/09 11:50:56 AM
1/22/09 11:50:56 AM