My 1st Successful WPS Script :-)
By Arron Johnson in Reader
Posted in Uncategorized on January 15, 2007 at 1:15 am
So following on from the previous post, I’ve been playing with WPS for a week now, on and off. The Script I’ve been playing around with was aimed at Event Logs.
The script has gone through many variations, it started off as just retrieving all the events from the application log and putting them in an HTML file.
I’ve now got to the point where the script prompts for the log you would like to check , then filters the output to include only warnings and errors. Then colour codes the results (Errors – Red, Warnings – Yellow).
The file is then saved with a filename that consists of the host name and eventlog name.
Please feel free to have use the script and to amend it if you wish. I am not finished with the script myself yet, there are still a few things I would like to be able to add to it;
- Checking Remote hosts
- Including a quit option
- Being able to check all logs at once
There’s probably more but it’s getting late, and I’m going to bed! If anyone makes any improvements they have made to the script I would love to see them, just add them as comments to this post!
The script is below, just copy and paste to a file and save with a .ps1 extension.
Arron
CLS
Make a comment
Most commented posts
- AVG 8 Invalid Update Control CTF File
99 comments
- Word 2007 - Inserting automatic file name and path
- Vista Media Center guide ignores ITV?!?!?
- Internet TV on Media Center! :-)
- Nabaztag rabbits and RFID
- Opera Mini, my new love!
- Apple 3G IPhone
- I want unlimited data usage! ... but I don't want an IPhone!
- I'd like to introduce you to my rabbit
- Freebies
Highest Rated Blog Posts
- Nabaztag rabbits and RFID (100%)
- Opera Mini, my new love! (100%)
- I'd like to introduce you to my rabbit (100%)
- Internet TV on Media Center! :-) (100%)
- Vista Media Center guide ignores ITV?!?!? (100%)
- Opera... I love it (100%)
- Word 2007 - Inserting automatic file name and path (100%)
- I want unlimited data usage! ... but I don't want an IPhone! (100%)
- New Blog system (100%)
- Xmas Gifts (100%)

