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!!!
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.
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."
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!
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 = "."
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.