One of the chores that always seems to come up is renaming files in a directory. Usually this is a transformation of the name to prevent issues across OS or to prevent the overwriting of existing files. Here is an example of a script that can do this.
Visual Basic Script File Search & Rename

Another chore I have run across is when you try to archive files that have the same naming convention, case in point I store log files that have generic names like 1.log, 2.log, etc.... These files are stored in folders that correspond with the date they were created. I needed to combine all the files into a single folder for some reporting without overwriting any files. This script will start in a folder, enumerate all the sub-folders and rename all the files in the sub-folders to sub-folder name file name.
VBS Enumerate Folders and Rename Files

I try out a lot of software, so I install and then uninstall alot of stuff. I got to wondering if the uninstallers were removing all the registry keys that were related to the software that was being removed. So I put together this script to show me any registry value under HKEY_LOCAL_MACHINE\SOFTWARE that contains a file path that can not be found.
VBS Show Reg Entries with Bad File Paths

If you have the need to troubleshoot what looks to be a spyware or a virus issue, it is nice to be able to see what executables are being run at startup. These two scripts will do that, the first lists what values are located under the run keys in the registry along with information about the file that is being executed. The second will list the links that are located under the startup folder in the current user's profiles. It will also list the information about the files pointed by the links.
VBS Show Registry Run Key Values
VBS Show StartUp Files

When you are managing Windows Domains sometimes it is necessary to to generate a listing of the users. Here is are some examples of scripts that can do this.
ADSI VBS List Domain Users
ADSI VBS List Disabled Domain Users
ADSI VBS Check Specific Domain Users

When you are managing Windows Domains, you will have to enable and disable accounts, here are two scripts that do this.
ADSI VBS Disable Domain Users
ADSI VBS Enable Domain Users

When you are managing Windows Domains sometimes it is necessary to to generate a listing of the groups. Here is an example of a script that can do this.
ADSI VBS List Domain Groups

Didn't find what you were looking for or needing? Want a custom script or custom code?
You can submit a request for a custom solution.


Copyright © 2005 - 2013 Dave Moats.  All rights reserved.  Links: Copyright © by their respective owners.
NO WARRANTIES EXTENDED.  Void where prohibited by law.  Please report any issues or broken links.
You may link to this site freely from your own site.  You may quote from this site, but please include a link to the original source on the originating site.