Enhancing Your Script

You’ve worked your way through your first script, and now let’s see how we can modify it to enhance its capabilities. Here is the new functionality you will add to your script:

  • Creating documentation that will keep track of what you learned in the previous section

  • Obtaining information in addition to the three computer names

Docs That Make House Calls

Let’s first add some documentation to the script so that when you look at it six months from now, you’ll know what you’re looking at.

To add documentation, you simply type information into the script. To prevent the script from choking, you need to indicate that you are adding the text. You can do this in several ways. Perhaps the most efficient way is to preface each note with a ...

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.