Scripting Wife Discusses 2012 Scripting Games Beginner Event 1

Hi everyone. Well, Ed (the Microsoft Scripting Guy) is totally swamped with the 2012 Scripting Games, and so I thought I would jump onto Live Writer and write a quick post about Beginner Event 1. I noticed that Ed has been keeping up pretty well with the comments on Twitter and  the Hey, Scripting Guy! Blog. He is a bit behind on answering email that comes to (I think he normally checks it about once a day).

Anyway, here is my take on Beginner Event 1. There are a couple of things going on with this event. First of all, I am not certain you should even pay all that much attention to me because I did not get a five on any of my scores; but hopefully, I can help you do better without saying exactly what the judges said about my script. So here goes. Winking smile

1. Your answer must be able to run against a remote server. This is where I messed up. Although my answer COULD have run against a remote server, IF you modified it, the judge did not like that, and it cost me one point.

2. Make sure you that you have your information in the correct order before you choose the top ten items that are using up the most memory. This is important because otherwise you get ten random things coming back. Random is not good here.

3. Make sure that you return an object that you can do other stuff with. This is in the requirements, and if you do special formatting or change your object, you will not be able to do other things with it.

This event only took me about 30 minutes or so to do. I used the information about processes from Get-Help and from the Hey, Scripting Guy! Blog. Hint, pay attention to the 2012 Scripting Games Study Guide…Ed is really proud of that, and it will help you. I hope that you have the 2012 Windows PowerShell Scripting Games: All Links on One Page bookmarked. I use that to keep up with stuff.

Well, that is it. I am heading out in a little bit. Good luck to you.


Scripting Wife

Comments (6)

  1. mredwilson says:

    @Chad a two is a good score. It means that the script submitted meets the requirements of the event. This is a good thing. Now, here is the way the grading goes. The judges all have their own ideas of what is a good script, and what is not. The rules say that aliases are acceptable, not that they are required. Often a judge will mention things (I know that I do) in the comment that is NOT directly related to the actual grade I give. I want to give hints that might make you a better scripter. For me, when I am grading, if the design says an alias is acceptable, that means you will NOT loose points for using them, but you do not gain points for using them either. I have added that very comment, that the command could be shorter by using aliases, but it did not affect my specific grade. The grading is this: the command should be capable of running remoting = 1 point. The command should return an object = 1 point. You should be able to write to a file = 1 point. The script should work and meet the requirement of the scenario = 2 points. So there are your five points. You lose a point or two points if you miss any one of these things. Keep in mind, the judges all have their own ideas, I have given them guidelines, but they are all free to express their own judgement. Keep in mind, that during the next three weeks, the scripts will be judged by multiple judges. My goal is that every script submitted will be graded at least twice … some will be graded more often. This is especially true for some of the first scripts because some of the judges are anxious to get to grading, and so a few scripts have already been graded more than 6 times. This would be great to do for all the scripts, but the sheer number of scripts and the level of competition do not permit it. I try to add comments to all of the scripts that I grade. I know many of the other judges are doing that as well, but comments take time. Some of the judges are holding back their comments, and are writing general comments in their blogs. I am going to put together a blog roll of judges in the next day or so. Also, many of the judges are tweeting comments related to scripts they grade. Filter #2012SG in your twitter client. Also follow @ScriptingGuys and the other judges as well.

  2. mredwilson says:

    @Dawn Villejoin I will tell her you liked the post 🙂 I believe she will be doing this for all the beginner events (she did last year).

  3. mredwilson says:

    @Killian this is great advice … read the question at least twice.

  4. Dawn Villejoin says:

    Thanks!!! I've already submitted event 1 but this was VERY helpful!! 🙂

  5. Killian says:

    Well I learnt a valuable lesson from exercise 2 today; read the flipping question, atleast twice!  Was very proud with my latest entry until I checked my twitter feed a few hours later and saw the tweet announcing exercise 2 is available and that it is regarding looking at what can be stopped on services that are running………

    Kicked myself as it made me think about something I missed that stares out at me now! Shan't say what as I don't want to spoil for others but learn from my mistake and read the question a couple times through if you haven't already…..

    I'm aiming for 5 stars on exercise 3, best of luck to you!

  6. Chad says:

    Thanks for the suggestions, Scripting Wife.  I think that is what I am having trouble in understanding how the judging is being done.  Do I get counted against for not using aliases?  One judge pointed that out.  As a total newbie to Powershell, I prefer not to use aliases to help me understand it better, but does that count against me.  The other factors that I am not really understanding are the returning an object so that I can do other stuff with it and making sure it runs against a remote server.  A friend suggested that I do the games as my first time at learning Powershell.  Maybe that wasn't such a good idea because everything I have submitted has been two stars, and I don't have a clue on what I did wrong.

Skip to main content