Microsoft VBScript Step by Step

Microsoft VBScript Step by Step

by Ed Wilson
Microsoft VBScript Step by Step

Microsoft VBScript Step by Step

by Ed Wilson

eBook

$29.99  $39.99 Save 25% Current price is $29.99, Original price is $39.99. You Save 25%.

Available on Compatible NOOK Devices and the free NOOK Apps.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

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.


Product Details

ISBN-13: 9780735638426
Publisher: Pearson Education
Publication date: 11/29/2006
Series: Step by Step Developer
Sold by: Barnes & Noble
Format: eBook
Pages: 512
File size: 3 MB

About 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.

Table of Contents

Acknowledgments;
Introduction;
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;
For...Next;
Do While...Loop;
Do Until...Loop;
Do...Loop;
While...Wend;
Creating Additional Objects;
Using the For Each...Next Command Step-by-Step Exercises;
One Step Further: Modifying the Ping Script;
Chapter 3: Adding Intelligence;
If...Then;
If...Then...ElseIf;
If...Then...Else;
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;
Win32_NetworkAdapterConfiguration;
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;
Exchange_FolderTree;
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;
Constants;
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;
Scripting;
Related Titles;
Appendix : More Great Resources for IT Professionals;
Administrator’s Pocket Consultant;
Administrator’s Companion;
Resource Kit;
Self-Paced Training Kit;

From the B&N Reads Blog

Customer Reviews