Production Script: ListLabComputers
The ListLabComputers script is run every 10 minutes. It takes about 3 seconds to run and outputs a csv file listing the current state of each lab. This script was created based on the idea of a useful Windows Vista Sidebar Gadget. The data could be presented in a number of ways, but the output lists the number of computers in a given lab, the number of unused computers and the number of computers that are powered off.
Since the data is output to a csv file it can very easily be read and processed and no special security is required on the Active Directory side.
Several of the functions are already documented elsewhere, please read those pages for information about how the functions and procedures work. Several of the more generic routines have been modified to work with this script.