Chapter 15. Using Subroutines and Functions

Before You Begin

To work through the material presented in this chapter, you need to be familiar with the following concepts from earlier chapters:

  • Reading text files

  • Writing to text files

  • Creating files

  • Creating folders

  • Using the For...Next statement

  • Creating the Select Case statement

  • Connecting to Microsoft Active Directory directory service

  • Reading information from WMI

After completing this chapter, you will be able to:

  • Convert inline code into a subroutine

  • Call subroutines

  • Perform Active Directory user management

Working with Subroutines

In this section, you’ll learn about how network administrators use subroutines. For many readers, the use of subroutines will be somewhat new territory and might even seem unnecessary, ...

Get Microsoft® VBScript Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.