Output Information

By default, this script would not have any output information. However, to illustrate that the script is actually doing something, I implemented a simple WScript.Echo command to echo out the name of the container that was created. Because the OU to be created is held in the variable named oOUname, it was a simple proposition to echo out the contents of the variable, as illustrated in the following code snippet, which comes from the now famous CreateOU.vbs script:

WScript.Echo("OU " & oOUname & " was created")

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.