Microsoft Visual Basic Scripting Edition and Microsoft Windows Script Host Essentials
This course teaches Windows administrators how to take advantage of Windows Script Host (WSH) by using the Microsoft Visual BasicĀ® Scripting Edition (VBScript). You learn how to use script, in Active Server Pages (ASP), Windows Management Instrumentation (WMI), and third-party Component Object Model (COM) components.
In order to play this video, you will need to install Adobe Flash player for your browser.
Audience
This course is intended for Windows 2000 systems administrators who need to learn how to develop administrative scripts for their enterprise networks. In addition, this course benefits anyone who wants an introduction to the VBScript programming language.
At Course Completion
At the end of the course, students will be able to:
Describe WSH and associated scripting technologies.
Use objects in code written in Visual Basic Scripting Edition.
Master the essentials of the VBScript language.
Master debugging and error handling with VBScript.
Use VBScript to interact with Active Directory™ Services Interface (ADSI).
Develop logon, logoff, startup and shutdown scripts.
Develop scripts that perform common administrative tasks.
Identify how they can continue to use VBScript in other scenarios.
Prerequisites
Before attending this course, students must have:
Practical experience using and administering Windows OS.
Practical experience using and administering the Active Directory directory service.
Practical experience using and administering system security.
Practical experience using and administering services.
Practical experience using systems management information.
Awareness of the potential uses of logon scripts.
Course Outline
Module 1: Overview of Windows Scripting Technologies
Introduction to WSH
Running Scripts
Working with Scripts
Comparing VBScript and Visual Basic
Module 2: Working with Objects
Object Terminology
Creating and Using Objects
Understanding Object Models
Common Object Models
Module 3: Script Logic
Fundamental VBScript Rules
Variables, Constants, and Data Types
Operators
Conditions and Loops
Procedures
Script Layout
Module 4: Error Handling and Debugging
Error Handling
Debugging
Module 5: Understanding ADSI
ADSI Overview
Binding with ADSI
ADSI Objects
Searching Active Directory
Creating New ADSI Objects
Setting Security in Active Directory
Managing Shares with ADSI
Controlling Services Using ADSI
ADSI Resources
Module 6: Creating Logon Scripts
Verifying the WSH Environment
Common Logon Script Tasks
Managing Logon Scripts
Troubleshooting Logon Scripts
Best Practices
Module 7: Administrative Script
Script Arguments
Working with Event Logs
Generating E-Mail Messages
Managing the Registry
Working with Drives, Folders, and Files
Setting Folder-Level and File-Level Security
Scheduling Scripts
Best Practices
Module 8: Beyond the Basics
Windows Script Files
Using COM Components
WMI
Scripting Microsoft Office
ASP Pages