Monthly Archives: October 2006

Advanced File Delete Script

By | October 27, 2006

I saw a Power Shell script recently and it showed how to delete all files recursively for a HD.
Well, I really don't know Power Script and I don't want to change from VBScript.
So, I figured that I should make a script in VBScript that could do the same thing.
This script could be useful to remove .mp3 files or the like from your file server.
WARNING!!! YOU CAN DELETE IMPORTANT SYSTEM FILES IF YOU ARE NOT CAREFUL!!!

So, go ahead and run this on you Domain Controller!!! Just Kidding!!!

Advanced File Copy Script

By | October 27, 2006

Here is a script which will not only copy files specified in an XML file but also log weather the file copy worked or not and insert a registry key to check if filecopy has run before so it doesn’t run it again. I use this for copying altered remote assistance files to my remote computers via Group Policy.

Seiko Smart Label Printer Fix

By | October 25, 2006

Where I work we sell a lot of Seiko Smart Label Printers to customers.
We have recently found out that the new version (6.0.7) of the software breaks the label printers functionality.
We have contacted Seiko and their answer is to go to Add/Remove Programs and uninstall the software.
Great, but one problem! If you try to install an older version of the software the printer functionality is still broken.
So, with a little digging I discovered that the Seiko uninstaller leaves "junk" all over your computer.
My script will remove the "junk" and allow you to install an older version of the Seiko driver that works.

Query Dell Service Tag: Revised

By | October 20, 2006

This is an update to the previous script "Query Dell Service Tag".
I couldn't leave well enough alone…
The LazyNetworkAdmin defined his script as,
"Because most of the computers I work on are Dell's,
a lot of times I need to look up the service tag for a specific machine.
Without the need of bulky software, you can easily use WMI to gather this information.
This article will show you how to remotely query your dell pc's for their service tags."

Monitor and Start Process

By | October 13, 2006

Making my job easier through scripting is becomming a passion of mine.
I love to find problems that I can write a script for and then sit back and let the script do the work.
This script will list all running process and write tham to a text file.
Then it will search for a defined process in the file.
If the process doesn't exist, the script will start the app!

 ***This script has just been edited. In case you don't want to use a text file, I have created an array to perform the same function. It is a little faster!

Process Monitor And Killer

By | October 6, 2006

It's me again… Ho,Hum… I have a user who likes to run games on his computer instead of doing his work.
I found a couple of scripts online and joined them together. This script will monitor a specified computer
and if a defined process starts, the script will kill it.
You could also run this as a logon script by replacing
This:  strComputer = InputBox("Enter the name of the target computer here!")
With this: strComputer = "."

Reboot Remote Computer

By | October 3, 2006

Well, I had a script that would log off all of the computers in an OU.
But, what if you just wanted to log off or reboot one computer?!?
Oops… I didn’t think of that! Well, I guess I can’t say that any more.
This script will allow you to reboot, logoff or shutdown any computer.