Worker and Output Information
The Worker information section of the ListShare.vbs script simply uses WScript.Echo to write the various properties and their associated values to the command line (if run in CScript) or to a pop-up dialog box (if run in WScript, which is not a really good idea when you have lots of shares). The most convenient listing of all the available properties for a particular class is contained in the platform SDK. A quick search for Win32_Share reveals the properties listed in Table 10-1.
Table 10-1. Win32_Share Properties
Data type | Property | Meaning |
---|---|---|
Boolean | AllowMaximum | Allow maximum number of connections? True or False. |
string | Caption | Short, one-line description. |
string | Description | Description. |
datetime | InstallDate | When the share 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.