Learn about Windows PowerShell
Summary: Beginner Event 2 of the 2011 Scripting Games uses Windows PowerShell to locate services that will accept a pause command.
About this event
Date of Event
4/5/2011 12:01 AM
4/12/2011 12:01 AM
You are a power user who has always enjoyed “tweaking” the performance of your workstation. You are rather careful about what you do, and you always like to have a way to fix the changes you make. You recently became aware of the fact that some services allow you to pause them, and then later unpause them. Unfortunately, so far none of the services you have attempted to pause have accepted the pause command. You then got the bright idea that perhaps you could retrieve this information by using Windows PowerShell. Your script must only report on running services that accept a pause command. The output should display the status of the service, name, and display name of the services that meet the criteria. A sample output is shown in the following image.
2011 Scripting Games links
2011 Scripting Games: All Links on One Page
Submit your scripts on PoshCode
Support our Sponsors!
I invite you to follow me on Twitter and Facebook. If you have any questions, send email to me at firstname.lastname@example.org, 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
the scripts I uploaded disappeared for the second time.
also the freshly uploaded sxript...
ißm kind of dissatisfied!!
the site times out every now and then, i couldn´t contact there because the site doesn´t respond....
I had that issue when using the Firefox browser. IE worked fine for me
@kloinerFeigling83 The rules do not permit submitting a script multiple times, and therefore there is a process that will delete multiple submissions. The reason for this is that some people submitted their script, received the evaluation by the judges, and then made the changes and submitted the script again. This is not fair to the other people competing in the games. Other than that, your scripts should not be disappearing.
@me-again The PoshCode site is up right now, and is working great.
well now it works again, but now i ain´t able to upload a newer version, as i´m only allowed to upload 1 script...
would be cool to see if a script is accepted, the way it is now it looks like, uhm my script is not there.
and i can´t upload the new version...
How do we find out why we received such a low score on a script?
Are we also supposed to get any kind of emails throughout this contest?
I have not received one. not when they started or anything. I knew because I watched the site. However Beginner event 1 was the only one available to me until Friday. I just have a bad feeling I am missing something? i thought my script for the beginner event 2 worked fine but I only received one star. It would be nice to be able to know what the issues were with it so i don't keep repeating the same mistakes in the other events since i am way down on the leader board at this point that i have no chance of catching up.
Is it being published who is the winners of the drawings or do you just contact the winner and if we don't hear anything we are SOL? :)
@kloinerFeigling83 not certain what is going on with your scripts. Once a script is uploaded, you are generally taken back to a new page and you should be able to see your new submission. Pay attention that you are not getting "logged out" because there is a time-out on the system. I know I have been "logged out" while I have been in the process of grading a submission. Always look in the upper right corner to see if it says logon, or if your logon name is displayed.
You are correct, you are only allowed to submit once per event. It is therefore vital that you ensure you upload the correct "version" of your script. Also make sure you are submitting for the correct event ... There is a process that will delete duplicate entries (it leaves the 'original' entry).
@Johnny Leuthard you might get comments on your script submission ... but you might not. Judges are encouraged to add comments, but there are a LOT of entries, and assigning the grade is most important. Some of the judges are writing blog posts, and I intend to collect them together and post on the Hey Scripting Guy blog. I have also written my impressions (see this weekends two Hey Scripting Guy! blog posts: www.scriptingguys.com/blog for that. I add comments to all of the entries I grade, but that takes a lot of time. I typically spend between 10 and 30 minutes grading a single entry. With over 500 entries so far, I cannot do them all. All of the judges have jobs, and are volunteers.
I have choosen NOT to email people throught the games. You will get an email with a certificate of completion at the END of the games, IF you send me an email with your details. I will send an email about that at the end of the games. You will get an email notification of a prize if you win a prize. Drawings begin tommorow. I had to delay them for one day due to a problem that caused me to extend the deadline for submission for event 1. We will make a posting of the winners beginning tommorow ...
I have the same problem as Jonny: My script works as required, including both additional design points and comment based help as additional bonus. But just one star and no comment (script 730 - if you like to take a look). This is very unsatisfactory.
Could you please publish sample solutions and some more detailed (than the scripting wife posts) comments on the beginners events? It seems that e.g. on event one even some judges didn't notice that Get-Process -FileVersionInfo and variations thereof doesn't work remotely.
The Scripting Wife articles are meant to be hints, not solutions ... to help you in figuring out your approach. Beginning tommorow, you will be able to look at all of the event 1 solutions that were posted during the games, and you will be able to see which ones gained the highest scores. In addition, the following week I will begin publishing the solutions written by the expert commentators -- many of whom were actual judges during the games. Following that, I will pick 10 scripts at random and examine them for good points and bad points. I will also suggest changes ... so there is a LOT of room for learning about scripting in the next several weeks. See my post in the Hey Scripting Guy forum about the judging... social.technet.microsoft.com/.../bc23540d-9c05-45cb-b914-2eb0a8c39ee7
May you please help as I'm trying to submit beginners event 2 but there is no beginners event 2 on category drop down menu
@Kwetepe I am sorry, but the submission deadline for event 2 is over. If the event no longer appears in the drop down list, it means the deadline has passed. The reason for this is that now you can see the answers for events 1 and events 2.