
Have you written a script that accomplishes some administrative task? Please share it! Just navigate to the appropriate category and click the "Contribute to this category" link!
You are here: Top > Wrappers and Templates
Contribute to this category
Sub-Categories
(no categories are available)
Scripts
Add items to HTML Listbox Contributed by Jim Vierra
Simple HTML page to capture VBScript code needed to add options to a DHTML "client-side" Listbox (SELECT tag). Works in HTA also.HTA Sampler Contributed by Jim Vierra
HTA Sampler - modal, modeless dialogs with HTAs. HTA callbacks from dialogs. Scrolling line by line output for diagnostic messages. File saving and loading of HTML from files....more. (See readme)Iterate domain users or computers Contributed by donj
Ever wish you could write a script that ran against every user or computer in the domain, even if they were nested within OUs or containers? Well, you can! Here's a shell script that runs through the entire domain, beginning at the root. Note that you can replace "defaultNamingContext" with something like "ou=MyUsers,dc=mydomain,dc=com" in order to start the script within an OU rather than at the root of the domain Simply add your code to the appropriate sections. For example, you could add code to the "computer" section to query information from the computers by using WMI. In either case, "oADObject.Name" will represent the name of the current user or computer object.Read computer names from text file with error handling Contributed by Don Jones
This wrapper illustrates how to use error handling to read computer names form a file, attempt a connection to each (via WMI, perhaps), and handle the error which occurs if one computer can't be contacted.Read computers from a database Contributed by Don Jones
This script is meant to be saved as a WSF file and run from a command-line using CScript.
COmmand-line arguments include /file:filename (for the database file), /type:access|excel (specify access or excel for the database type), and /table:name (specify the Access table or Excel sheet name, for Excel it's something like [Sheet1$] for example).
Enclose filenames, table names in double quotes if they contain spaces or punctuation.Safe WMI Query Execution I Contributed by Jim Vierra
Safely execute a WMI Query. WMI queries can be executed more easily (see example in code) If there is an error the script will abort with more usefull information Information is written to the StdErr output so it can be written to an error Log The Abort function is useful from any call you want to guard and gather extended information from.Safe WMI Query Execution Contributed by Jim Vierra
Safely execute a WMI Query. WMI queries can be executed more easily (see example in code) If there is an error the script will abort with more usefull information Information is written to the StdErr output so it can be written to an error Log The Abort function is useful from any call you want to guard and gather extended information from.Scripts that run against multiple computers Contributed by donj
Sometimes you'll want to write scripts that can perform an action against multiple computers, all automatically. One easy way to do that is to create a text file containing the target computers' names, and to have the script read that file and execute whatever commands you like against each. Here's a shell script that you can use to achieve just that. Simply add in the code you want to run against each computer, and you're done!SuperInputBox Contributed by Steve Steiner
A method to create dialog boxes in vbscript more powerful than the prompt method. Samples are included. This was posted originally on this site by someone else (I don't recall who). It is wholly this persons work and all credit goes to him.