Microsoft VBScript Step by Step [NOOK Book]


Get guidance from a well-known scripting expert—and teach yourself the fundamentals of Microsoft Visual Basic Scripting Edition (VBScript). This tutorial delivers hands-on, self-paced learning labs to help you get started automating Microsoft Windows administration—one step at a time.

Discover how to:

  • Manage folders and files with a single ...
See more details below
Microsoft VBScript Step by Step

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
  • NOOK for Web

Want a NOOK? Explore Now

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


Get guidance from a well-known scripting expert—and teach yourself the fundamentals of Microsoft Visual Basic Scripting Edition (VBScript). This tutorial delivers hands-on, self-paced learning labs to help you get started automating Microsoft Windows administration—one step at a time.

Discover how to:

  • Manage folders and files with a single script
  • Configure network components with Windows Management Instrumentation
  • Administer users and groups using subroutines and Active Directory Service Interfaces (ADSI)
  • Design logon scripts to configure and maintain user environments
  • Monitor and manage network printers
  • Back up and edit the registry—avoiding common pitfalls
  • Handle errors and troubleshoot scripts
  • Simplify administration for Microsoft Exchange Server 2003 and Internet Information Services 6.0

Includes a CD featuring:

  • All practice exercises
  • 100+ sample scripts to adapt for your own work

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

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
If you're responsible for Windows infrastructure, you should be scripting. Microsoft's VBScript is perfectly designed for the task, and Microsoft VBScript Step by Step is perfectly designed for mastering it.

You'll learn by using VBScript for things you actually might do. Your very first script won't be "Hello, World": it's a six-line script confirming that all your servers have admin tools installed. Right up front, Microsoft enterprise consultant Ed Wilson teaches you how to read and adapt existing scripts, so you can start leveraging everyone else's scripts immediately.

Then, using Wilson's extensive collection of hands-on practice exercises and sample scripts, you'll learn how to streamline every corner of day-to-day Windows administration: file systems, folders, WMI, networking and network printing, the registry, logon scripts, even Active Directory, IIS 6.0, and Exchange. This book may save you more time than anything else you read this year. Bill Camarda, from the February 2007 Read Only

Read More Show Less

Product Details

  • ISBN-13: 9780735638426
  • Publisher: Pearson Education
  • Publication date: 12/13/2006
  • Series: Step by Step Developer
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 512
  • Sales rank: 394,274
  • File size: 4 MB

Meet 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 Microsoft Windows PowerShell Step by Step and Microsoft VBScript Step by Step. Ed is a senior consultant at Microsoft Corporation.

Read More Show Less

Table of Contents

A Practical Approach to Scripting;
Is This Book for Me?;
Outline of This Book;
Finding Your Best Starting Point;
About the Companion CD;
System Requirements;
Part I: Covering the Basics;
Chapter 1: Starting from Scratch;
Running Your First Script;
Enhancing Your Script;
Modifying an Existing Script;
Exploring a Script: Step-by-Step Exercises;
One Step Further: Customizing an Existing Script;
Chapter 2: Looping Through the Script;
Adding Power to Scripts;
For Each...Next;
Do While...Loop;
Do Until...Loop;
Creating Additional Objects;
Using the For Each...Next Command Step-by-Step Exercises;
One Step Further: Modifying the Ping Script;
Chapter 3: Adding Intelligence;
Select Case;
Modifying CPUType.vbs Step-by-Step Exercises;
One Step Further: Modifying ComputerRoles.vbs;
Chapter 4: Working with Arrays;
Passing Arguments;
Command-Line Arguments;
Using Multiple Arguments;
Tell Me Your Name;
Working with Arrays;
Moving Past Dull Arrays;
Two-Dimensional Arrays;
Passing Arguments Step-by-Step Exercises;
One Step Further: Building Arrays;
Chapter 5: More Arrays;
Strings and Arrays;
Parsing Passed Text into an Array;
Parsing Passed Text;
Working with Dictionaries;
Using Basic InStr Step-by-Step Exercises;
One Step Further: Creating a Dictionary;
Part II: Basic Windows Administration;
Chapter 6: Working with the File System;
Creating the File System Object;
File It Under Files;
File Properties;
File Attributes;
Creating Files;
Writing to a Text File;
Verifying a File Exists;
Creating Files Step-by-Step Exercises;
One Step Further: Creating a Log File;
Chapter 7: Working with Folders;
Working with Folders;
Automatic Cleanup;
Binding to Folders;
Copying Folders;
Moving Folders;
Creating Folders Step-by-Step Exercises;
One Step Further: Deleting Folders;
Chapter 8: Using WMI;
Leveraging WMI;
Understanding the WMI Model;
Working with Objects and Namespaces;
Digging Deeper;
Listing WMI Providers;
Working with WMI Classes;
Querying WMI;
Retrieving Hotfix Information Step-by-Step Exercise;
One Step Further: Echoing the Time Zone;
Chapter 9: WMI Continued;
Alternate Ways of Configuring the WMI Moniker;
Accepting Defaults;
Moniker Security Settings;
Using the Default WMI Moniker Step-by-Step Exercises;
Invoking the WMI Moniker to Display the Machine Boot Configuration;
Including Additional Security Permissions;
One Step Further: Using Win32_Environment and VBScript to Learn About WMI;
Chapter 10: Querying WMI;
Tell Me Everything About Everything!;
Selective Data from All Instances;
Selecting Multiple Properties;
Choosing Specific Instances;
Using an Operator;
Where Is the Where Clause?;
Writing an Informative WMI Script Step-By-Step Instructions;
One-Step-Further: Obtaining More Direct Information;
Part III: Advanced Windows Administration;
Chapter 11: Introduction to Active Directory Service Interfaces;
Working with ADSI;
Output Information;
Creating Users;
Creating OUs Step-by-Step Exercises;
One Step Further: Creating Multi-Valued Users;
Chapter 12: Writing for ADSI;
Working with Users;
Modifying the Address Tab Information;
Deleting Users;
Deleting Users Step-by-Step Exercises;
One Step Further: Using the Event Log;
Chapter 13: Using ADO to Perform Searches;
Connecting to Active Directory to Perform a Search;
Creating More Effective Queries;
Searching for Specific Types of Objects;
What Is Global Catalog?;
Creating an ADO Query into Active Directory Step-by-Step Exercises;
One Step Further: Controlling Script Execution While Querying Active Directory;
Chapter 14: Configuring Networking Components;
WMI and the Network;
Changing the TCP/IP Settings;
Merging WMI and ADSI;
Using WMI to Assign Network Settings Step-by-Step Exercises;
One Step Further: Combining WMI and ADSI in a Script;
Chapter 15: Using Subroutines and Functions;
Working with Subroutines;
Creating Users and Logging Results;
Header Information;
Working with Functions;
Using ADSI and Subs, and Creating Users Step-by-Step Exercises;
One Step Further: Adding a Logging Subroutine;
Chapter 16: Logon Scripts;
Working with IADsADSystemInfo;
Using Logon Scripts;
Deploying Logon Scripts;
Output Information;
Adding a Group to a Logon Script Step-by-Step Exercises;
One Step Further: Adding Logging to a Logon Script;
Chapter 17: Working with the Registry;
First You Back Up;
Creating the WshShell Object;
Connecting to the Registry;
Unleashing the Power of the StdRegProv Class;
Creating Registry Keys;
Writing to the Registry;
Deleting Registry Information;
Reading the Registry Using WMI Step-by-Step Exercises;
One Step Further: Creating Registry Keys;
Chapter 18: Working with Printers;
Working with Win32_Printer;
Obtaining the Status of Printers;
Creating a Filtered Print Monitor;
Monitoring Print Queues;
Monitoring Print Jobs Step-by-Step Exercises;
One Step Further: Checking the Status of a Print Server;
Part IV: Scripting Other Applications;
Chapter 19: Managing IIS 6.0;
Locating the WMI classes for IIS 6.0;
Making the Connection;
Creating a Web Site;
Backing Up the Metabase Step-by-Step Exercises;
One Step Further: Importing the Metabase;
Chapter 20: Working with Exchange 2003;
Working with the Exchange Provider;
Connecting to MicrosoftExchangeV2;
The Exchange_QueueSMTPVirtualServer Class;
Header Information;
Exchange Public Folders;
Using the Exchange_Logon Class Step-by-Step Exercises;
One Step Further: Using the Exchange_Mailbox Class;
Chapter 21: Troubleshooting WMI Scripting;
Identifying the Problem;
Testing the Local WMI Service;
Testing Remote WMI Service;
Testing Scripting Interface;
Obtaining Diagnostic Information;
General WMI Troubleshooting Steps;
Working with Logging Step-by-Step Exercises;
One Step Further: Compiling MOF files;
Part V: Appendices;
Appendix A: VBScript Documentation;
VBScript Run-Time Errors;
VBScript Syntax Errors;
FileSystemObject Object Model;
Appendix B: ADSI Documentation;
Computer Object Mapping;
Domain Object User Interface Mapping;
Group Object User Interface Mapping;
Object Property Tab;
Organizational Unit User Interface Mapping;
Printer Object User Interface Mapping;
Shared Folder Object User Interface Mapping;
User Object User Interface Mapping;
Appendix C: WMI Documentation;
Win32 Classes;
WMI Providers;
WMI Scripting API Objects;
WMI Log Files;
WMI Scripting Object Model;
Appendix D: Documentation Standards;
Header Information Section;
Reference Information Section;
Worker Information Section;
Output Information Section;
Sample of Documentation Use;
Variable Naming Conventions;
Appendix E: Special Folder Constants;
Appendix : About the Author;
Appendix : Additional Resources for IT Professionals;
Microsoft Windows Server;
Microsoft Windows Client;
Microsoft SQL Server 2005;
Microsoft Exchange Server 2003;
Related Titles;
Appendix : More Great Resources for IT Professionals;
Administrator’s Pocket Consultant;
Administrator’s Companion;
Resource Kit;
Self-Paced Training Kit;

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & 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 & 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 & 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 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


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & 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 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 1 Customer Reviews
  • Anonymous

    Posted March 25, 2012

    No text was provided for this review.

Sort by: Showing 1 Customer Reviews

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