Archive for the ‘Windows Scripts’ Category

I find the below a useful script, it moves files from one directory into a folder of the same name. So if you have five files, then five folders are created (without the extention) and the files are moved into each folders. I use this for moving Media and software downloads into there own seperate [...]

Here’s another simple script that I used frequently. In it’s currently state it removes Fullstops, Underscores, hyphens from files names. So a file call File.name-test_1.avi would become File name test.avi The script is often helpful when managing media or importing files into a systems that requires a specific format.

*** Updated Version to resolve names not being exported on some NBU files *** This is the Updated Version of the Script that removes some extra “;”‘s from the Name. The Heading fields also more closely match the once in Outlook. Also It now cope with mutiple cell phone numbers. The script only extracts contact, [...]

Host Table Clear Down.

Posted: October 31, 2011 in Windows Scripts

Local host tables on a large network can be a real pain, all the PC’s should use DNS Resolution, but often either as a short cut, or as a historic way of solving problems local host tables may be used. Often with old and out of date information. The below script uses active directory to [...]

This script hides user and contact from the Exchange address book. You just need to change the oContainer to the required OU. It’s an old scripted and I have an updated version somewhere the will do all sub OU below the specified OU. But may be useful to someone.

My Send Mail VBS script

Posted: September 26, 2011 in Windows Scripts

I often need to send e-mail in my VBS scripts. Instead of writing the same script over and Over. I Just place this sub routine in my VBS code.   ‘***************************************************************** ”*****               Send an E-mail Subroutine            ******* ”*****                 12 June 2011                       ******* ”*****               The Gamblor                          ******* ”*****                                                    ******* ‘*****************************************************************

Hardware Audit Script

Posted: June 30, 2011 in Windows Scripts

The below script does a hardware audit on PCs. It reads a computers.txt file in the same directory and creates an audit report. you can do it to mutiple PC’s accross the network ( as long as they are accessable). ‘***************************************************************** ”***** Script to get PC Details (Processor        ******** ”*****       speed, type, Hard Drive Size, [...]

This script converts a nokia NBU type file exported for a Nokia phone, to a CSV file. Which you can import into Outlook or other program. This is the V2.1 of the file. Just copy and past the file into a text file and call it convert.vbs. Name your nbu file as file.nbu and run. [...]

Host Tables.

Posted: June 14, 2011 in Windows Scripts

This is a useful little script to clear out Host tables on user PC’s within an Active directory domain. It will only work on PC that are swithed on, and you can specify an AD OU to run it againsts. Run it as an administrator, and change the company name and OY.