I decided to check the size of some of my logs on specific servers. Well, as it turns out there were 4GB of logs! I needed a script that would delete the files after so many days. I was really lazy and looked up the recursion portion (MS Scripting Guys)! You can point this script anywhere and it will delete any files older then the days you specify.
I just upgraded our systems with VMware's ESX server. When installing you can use SQL 2005 Express, but the downfall is that there isn't an automated backup in the management studio. So I created a batch file that would call a SQL query.
Users of the Microsoft Office XP and 2003 programs Word, Excel, or PowerPoint—please install all High-Priority updates from Microsoft Updatebefore downloading the Compatibility Pack.
By installing the Compatibility Pack in addition to Microsoft Office 2000, Office XP, or Office 2003, you will be able to open, edit, and save files using the file formats new to Word, Excel, and PowerPoint 2007. The Compatibility Pack can also be used in conjunction with the Microsoft Office Word Viewer 2003, Excel Viewer 2003, and PowerPoint Viewer 2003 to view files saved in these new formats. For more information about the Compatibility Pack, see Knowledge Base article 924074.
The company I work for has a lot of computers and all of them had different local Admin passwords. I created this script to set all local admin passwords! All you need to do is enter the names of your hosts into a .txt file.Then drop the .txt file onto the script.
I have an application called PDM Works Enterprise. When some people access the appliation the side effect is their system time slows down. I have look on forums and called application support, but no dice. So, I created a script that syncs time with your domains time server. Thanks to the Windows Scripting Guys for explaining %COMSPEC%.
When a printer dies or is replaced and a new one installed you need a way to remove the old printer from users machines. But you don't want to do this by hand. This script can remove a mapped printer and can be added to a logon script or run via group policy.
I needed to create over 300 folders with specific file names. These names were listed in an excel doc and I didn't want to create the folders by hand. This script will create folders based on the listed text in an excel file.
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!