Tag Archives: Script

Delete Logs / Files in Subfolders

By | April 1, 2009

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.

 

 

Rollout the Office 2007 Converter Pack Silently

By | April 4, 2008

Lots of companies don’t want to shell out the $$$ for going to Office 2007. Luckily, Microsoft has a file converter that allows users with Office 2003 to read and edit Office 2007 files!

My script will allow you to silently install the .exe on your users’ machines.

Just add it to a GPO

  

Download the converter pack here: http://www.microsoft.com/downloads/details.aspx?FamilyId=941b3470-3ae9-4aee-8f43-c6bb74cd1466&displaylang=en

 

From Microsoft:

Users of the Microsoft Office XP and 2003 programs Word, Excel, or PowerPoint—please install all High-Priority updates from Microsoft Update before 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.

 

 

 

Sync Time With Domain Time Server

By | October 19, 2007

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%.

Remove a Printer using the Printers Name

By | October 10, 2007

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.

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!