Script to Collect Local Administrators Membership from List of Machines

Another script I wrote the other day, this one will take an input file called workstations.txt and produce a CSV which is easy to view in Excel and look at the local administrators group membership for the list of machines. The script could easily be modified to get the list from Active Directory although he framework I usually use for these is setup for a text file so I just export a list if AD is my source. The script will attempt to ping the machine before connecting in order to try and determine availability. If you have firewalls or … Continue reading Script to Collect Local Administrators Membership from List of Machines

Script to Collect Basic Inventory Data From Machines

This is another useful script I sometimes use when I need to collect some basic inventory data from a list of machines. The attached vbscript takes an input file called workstations.txt and produces an comma separated output file called workstationinventory.txt. You can modify the two constants at the top of the file as noted below if you want to change this: The script currently only outputs a limited set of information but the framework is there to extend it to collect really anything available via WMI. The fields currently exported are: Make Model BIOS Version Operation System Serial Number To … Continue reading Script to Collect Basic Inventory Data From Machines

Script to Create Home Folders for OU

I thought I’d share the script attached at the end of this post as it’s something I’ve seen requests for below. The script will take all of the users in a given OU (or really any subtree), and create a home folder for them and stamp the path and drive letter on the user object in Active Directory. By default it only grants the users modify permissions on the account. If you want to change this modify the xcacls call around line 54. There are a few constants which need to be configured at the top of the script which … Continue reading Script to Create Home Folders for OU