Chapter 15. Subs and Other Round Things

In this chapter, you’ll examine subroutines—a very important and powerful way to make your scripts more flexible, easier to read, and easier to modify. Along the way, you’ll also look at additional user and group management tricks.

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 construction

  • Creating Select Case constructions

  • Connecting to Active Directory

  • Reading information from WMI

After completing this chapter you will be familiar with the following:

  • Converting inline code into a subroutine

  • Calling subroutines

  • Performing Active ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide 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.