Summary: In Advanced Event 5, you will produce a report that lists the number of errors from all the traditional logs on a particular server.
About this event
Division |
Advanced |
Date of Event |
4/6/2012 12:01 AM |
Due Date |
4/13/2012 12:01 AM |
Event scenario
You are an analyst on the server team of a medium-sized organization. You are studying the performance and reliability of various servers on the network, and you decide to produce a report that lists the number of errors from all the traditional logs on a particular server. The code you use should be capable of running against a local computer or against an arbitrary number of remote computers. An acceptable output is shown here.
Design points
- You will use impersonation for all remote connections, so you do not need to be able to supply credentials.
- You should not display errors due to permissions or due to no events matching your filter.
- You should not make changes to the users’ environment. If you do, you should change them back at the end of the script. Modification to the users’ environment following script completion will cost you points.
- Your script should run without prompting against the local computer.
- Your output should be organized such that the largest source of errors appears at the top of the output.
2012 Scripting Games links
2012 Scripting Games: All Links on One Page
I invite you to follow me on Twitter and Facebook. If you have any questions, send email to me at scripter@microsoft.com, or post your questions on the Official Scripting Guys Forum. Good luck as you compete in this year’s Scripting Games. We wish you well.
Ed Wilson, Microsoft Scripting Guy