cm logo
To speak to a training advisor please call
All Courses / Microsoft Courses / Microsoft VBScript: Introduction to VB Script and Scripting for Windows Systems Administrators
Share: Follow us: Bookmark with: twiter Print Page:

Microsoft VBScript: Introduction to VB Script and Scripting for Windows Systems Administrators

Course Code: WSCR      Days: 4
Online Training

Time stretched?

If you would prefer something more flexible, we can now offer Online Training related to this topic.

Click to see a list of courses »

Course Overview

In many current technology areas there is often a need to automate tasks without the need to create a large application. This can be automating system administration tasks; dynamic web page creation; creating web page testing scripts. It is in this gap that scripting (or script programming) fits. Script programming within the Windows environment is very powerful. Scripts can ease the burden of a web administrator by automating repetitive and laborious tasks. They can make information from machines in the enterprise easily available. Scripts can access databases, text files and spreadsheets. They can make websites interactive and bring powerful functionality to the website designer's armory.

The creation of scripts, however, still needs knowledge of programming methodology - specifications, design, logical breakdown of the task and programming the script itself. This course will take the scripting novice, highlight the design and task analysis procedures, before going on to instruct in the use of VBScript to create scripts.

This course will start with the basics of using scripts to manipulate an object based environment. The course will then use VBScript to access and manipulate the WSH objects, the FileSystemObject, the Excel object model and the ADO objects for accessing databases. You will learn how to write scripts that automate applications, parse log files for specific information, map web drives, and install printers and applications, amongst others things. Due to the practical nature of scripting, there will be a large element of hands on lab work with an emphasis on creating reusable, useful sample scripts that can be employed in the work place.

The course will be delivered as an interactive lecture including many hands-on hands-on exercises.

CourseMonster specialises in offering Microsoft training to corporations and individuals alike, we are happy to help with any of your Microsoft training requirements.

Related Courses

Audience

The course is written for administrators/IT professionals who have and would like to use VB Script to ease their administrative burden by automating repetitive tasks. The typical attendee will be an administrator/IT professional who is interested in examining how scripts can benefit and enhance their day-to-day environment

This course assumes no knowledge of VBScript mechanisms, but it does assume knowledge of the Windows interface.

Skills Gained

Delegates will learn how to

  • Understand the thought processes of a programmer
  • Build basic specifications and flowcharts
  • Understand VBScript programming syntax
  • Understand the benefits of procedural programming
  • Understand objects
  • Identify the benefits of scripting tasks and use scripts to automate repetitive tasks
  • Write scripts that manage a users network printers and drives
  • Automate the running of various programs such as disk defragmenter
  • Edit the registry with scripts
  • Gather network information using scripts
  • Read, and write to log files
  • Write scripts that can be launched remotely
  • Identify the mechanisms used to access spreadsheets and databases
  • Use scripts to read and write information to spreadsheets and databases

Course Outline

An Introduction To Programming

  • Explanation of what a program is: How to design a program; Understanding the Specification; Use Cases; Flowcharts and Psuedo Code; Logical layers; Development LifeCycle; Other Issues

VBScript Fundamentals

  • What is scripting?; Writing VBScript code; Variables and constants; Operators; Boolean Logic; Logical decision making; Looping statements

Procedural Programming

  • What is procedural programming; Subroutines and Functions; Writing and calling procedures; Scope; MsgBox and InputBox

Object Fundamentals

  • What is an object; Type libraries and classes; How to create and use objects; What are properties and methods, How to access properties and methods; How to identify the available objects in a library; How to identify the available properties and methods

Automating Applications and command line tools

  • Using the WSH Shell object to launch applications, control them and manipulate their output; Creating a ping function to check machine availability.

User Input through WSH

  • Getting user input through arguments and the standard input streams.

The Registry

  • Reading information from the registry; Deleting registry values and keys; Creating and modifying the registry.

Shortcuts

  • Creating shortcuts; Accessing the paths to special folders via script.

The Network Object

  • Mapping network drives; Enumerating mapped drives and installed printers; Installing printers via script.

Folders

  • Enumerating folders; Creating and deleting folders; Reading and modifying folder properties; Retrieving drive information.

Files

  • Enumerating files; Creating and deleting files; Reading and writing to files; Sending emails via the FileSystemObject.

Spreadsheets

  • Using the Excel objects to read from and write to spreadsheets.

Databases

  • Using the ActiveX Data Object model to access databases; System DSNs; Reading and Writing to SQL databases.

Appendix VBScript Language

  • Functions provided in VBScript; string, date and numeric functions; Conversion Functions; Is Functions

Appendix WMI

  • Using simple scripts to utilise Windows Management Instrumentation (WMI); The WMI scriptomatic tool.

Appendix Introduction to ADSI

  • Using simple scripts to utilise Active Directory Services Interface (ADSI); The ADSI scriptomatic tool
 
Related Online Training

If you would prefer the flexibility of online training, use the link(s) below:

More Online Training>>


How to make a booking for the WSCR course

Scheduled Dates

Request availability or enquire by clicking a date:

Sort by Location

London Region
London (Central)
£ 1,995
London (Central)
£ 1,995

Sort by Date

London Region
£ 1,995
London Region
£ 1,995

No Suitable Dates?

Please click above and we will take care of the rest.

Please click above and we will be happy to discuss the benefits of onsite and bespoke courses with you.

CourseMonster books thousands of public training courses, classes and boot camps both in London, City of London and throughout the UK including: Berkshire, Birmingham, Bristol, Bournemouth, Aylesbury, Cambridge, Derby, Devon, Edinburgh, Glasgow, Hampshire, Ipswich, Leeds, Leicester, Luton, Manchester, Middlesex, Milton Keynes, Newcastle, Norwich, Nottingham, Plymouth, Reading, Sheffield, Southampton, Surrey, Sussex, Midlands and Yorkshire. Topics range from software to administration, project management and development.