Microsoft Visual Basic Scripting Edition and Microsoft Windows Script Host Essentials
Program Outline
Module 1: Overview of Windows Scripting Technologies
The following topics are covered in this module:
Introduction to WSHRunning ScriptsWorking with ScriptsComparing VBScript and Visual BasicAfter completing this module students will be able to describe WSH and associated scripting technologies.This includes:
Using the various technologies associated with running Windows scripts.Running scripts.Working with scripts.
Module 2: Working with Objects
The following topics are covered in this module:
Object TerminologyCreating and Using ObjectsUnderstanding Object ModelsCommon Object ModelsAfter completing this module students will be able to use objects in code written in Visual Basic Scripting Edition.This includes:
Understanding how scripts use objects.Understanding object terminology.Using an object browser.Understanding how scripts interact with COM.Explaining the uses of various object models.
Module 3: Script Logic
The following topics are covered in this module:
Fundamental VBScript RulesVariables Constants and Data TypesOperatorsConditions and LoopsProceduresScript LayoutAfter completing this module students will be able to master the essentials of the VBScript language.This includes:
Declaring and using variables constants and data types in scripts.Using VBScript language operators.Constructing conditional code structures.Constructing looping structures.Declaring and using
Sub and
Function procedures.Determining an effective script layout.
Module 4: Error Handling and Debugging
The following topics are covered in this module:
Error HandlingDebuggingAfter completing this module students will be able to master debugging and error handling with Visual Basic Scripting Edition.This includes:
Preempting the types of errors that may be present in code written in VBScript.Writing code that handles run-time errors.Using the Microsoft Script Debugger to locate and fix logic errors.
Module 5: Understanding ADSI
The following topics are covered in this module:
ADSI OverviewBinding with ADSIADSI ObjectsSearching Active DirectoryCreating New ADSI ObjectsSetting Security in Active DirectoryManaging Shares with ADSIControlling Services Using ADSIADSI ResourcesAt the end of this module you will be able to use VBScript to interact with ADSI.This includes:
Binding to ADSI objects.Searching Active Directory.Creating and modifying objects in Active Directory.Managing shares with ADSI.Controlling services with ADSI.
Module 6: Creating Logon Scripts
The following topics are covered in this module:
Verifying the WSH EnvironmentCommon Logon Script TasksManaging Logon ScriptsTroubleshooting Logon ScriptsBest PracticesAfter completing this module students will be able to develop logon logoff startup and shutdown scripts.This includes:
Checking that the correct version of WSH is installed.Calling logon scripts from batch files.Accomplishing common tasks in logon scripts.Assigning logon scripts to users.Describing common issues with logon scripts.Describing best practices for logon scripts.Controlling services with ADSI.
Module 7: Administrative Script
The following topics are covered in this module:
Script ArgumentsWorking with Event LogsGenerating E-Mail MessagesManaging the RegistryWorking with Drives Folders and FilesSetting Folder-Level and File-Level SecurityScheduling ScriptsBest PracticesAfter completing this module students will be able to develop scripts that perform common administrative tasks.This includes:
Managing arguments in scripts.Adding entries to Windows 2000 event logs.Using collaborative data objects (CDO) to generate an e-mail message.Using script to manage the registry.Using script to work with drives folders and files.Scheduling scripts.
Module 8: Beyond the Basics
The following topics are covered in this module:
Windows Script FilesUsing COM ComponentsWMIScripting Microsoft OfficeASP PagesAfter completing this module students will be able to identify how you can continue to use Visual Basic Scripting Edition in other scenarios.This includes:
Windows script (.wsf) files.How COM components enhance the power of scripts.Windows Management Instrumentation (WMI).Scripting applications in Microsoft Office.Active Server Pages (ASP).Related Exams
Student Pre-Requisites
Before attending this course students must have:
Practical experience using and administering Windows 2000.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.
Student Materials
The student kit includes a comprehensive workbook and other necessary materials for this class.
The following software is provided in the student kit:
SAPIEN Technologies Inc. PrimalSCRIPT version 2.0VBScript version 5.5 DocumentationWindows Script Host version 2.0 Documentation
Program Goals
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.