Our October 2015 puzzle might take us beyond the realm of one-liners, but it circles back to the August 2015 theme of retrieving information from the web. This is another scenario that actually has a lot of real-world applications, in that there’s a lot of practical uses in the work environment for this technique. No related posts.
The September puzzler wasn’t intended to break your brain – but it was intended to highlight an extremely important pipeline technique. Let’s begin with our Celebrity Entry, from Stephen Owen. Celebrity Entry Alright guys, buckle yourselfs (selfs? Selves? I’m not sure which one it is..and this is supposed to be a stream of consciousness thing, so I’ll just leave it as is) So, we’ve got a CSV, with either computernames or IP addresses. The fact that RPC is already open and all of my communcations works..and it’s the same domain? There goes like half of what I normally have to […]
Our September 2015 puzzle is another one-liner, to help get you out of Summer Mood and back into Work Mode. This time, it’s a pretty real-world scenario, designed to test your understanding of the pipeline and how data can be manipulated within it. You’ll need to really grasp pipeline parameter binding to make this work in the shortest command possible. No related posts.
The August puzzler was intended to highlight the usefulness of REST APIs, and the relative ease with which you can wrap PowerShell commands around them. Our Celebrity Entry for this month will be from Warren Frame, followed by the Official Entry from the puzzle’s author, Don Jones. Celebrity Entry A short while back, I was plugging away on a fun PowerShell project, when I received a pleasant surprise – an invitation to write an article on the August Scripting Games Puzzle! For one reason or another, I’ve always missed out on the opportunity to participate in the Scripting Games, now I had no […]
Our August 2015 puzzler tests your ability to retrieve data from the Web. If you’ve never done this before, it can be a real brain-bender – but don’t overthink it; experts can probably pull this off in a one-liner if they’re using a newer version of PowerShell! No related posts.
The July puzzler wasn’t intended to break your brain – but it was intended to highlight an extremely important pipeline technique – and to make you think about how PowerShell parses command lines. Let’s begin with our Celebrity Entry, from Boe Prox. We think you’ll discover some interesting new techniques in this answer – and learn from understanding how he got there. Celebrity Entry The 2015 Scripting Games have started and have taken a different route this year in that we are they are running a monthly puzzle vs. the usual format. That being said, I was asked to be a […]
Our July 2015 puzzler is designed to make you really think about the PowerShell parser. Normally, you can more or less ignore the parser, because if you’re typing best-practice, long-form code (no aliases, spell out parameter names, etc), the parser deals really well with everything. But knowing how the parser works is useful, because when you get into tricky syntax, the parser can be harder to work with. So we’re going to test the limits of the parser’s patience – and your skills! No related posts.
I know a lot of folks have been wondering about when the next Scripting Games will be. It’s a complicated answer… so bear with me for a minute while I unburden my soul to you. If you prefer to just skip the explanations, you can skip a bit to see what we’re doing, part 1. The Background I’m not sure how long Microsoft’s Scripting Guys ran The Scripting Games, but it goes back at least to 2006. Back then, the focus was on VBScript, it wasn’t until a year or so later that a parallel PowerShell track was started, and another […]
We have some folks working on the next Scripting Games… but we want some feedback from the community to make sure we’re offering something of value. The current plan is to run a series of events, with both Beginner and Intermediate tracks. There will be no “advanced” track; the feeling is that, if you’re advanced, you should be helping out by judging ;). Events will be constructed as a combination of puzzles and real-world tasks, meaning some things will simply test your PowerShell skills, while others will test them in a more production-applicable way. What we need from the community […]
Cisco UCS servers (both managed by UCS Manager and standalone rackmount servers) can be managed with PowerShell scripts. Cisco is running a contest looking for the best PowerShell scripts that manage, automate, monitor, and perform tasks like inventory gathering about UCS Servers and other connected infrastucture, like hypervisors, applications, and operating systems. The Cisco UCS Power Scripting Contest is now open and will run until May 11th, 2014. A winner will be announced in the DevNET Zone at Cisco Live on May 20th at 5PM PT. Head over to the contest site for more details on how to win great […]
This post comes to us from Julie Andreacola, one of the members of team Kitton Mittons, who won The Scripting Games – Winter 2014. You’re welcome to submit your thoughts about the Games as well! The 2014 Scripting Games are over and once again, it was a terrific experience. This was my third scripting games and I was blown away with all that I learned. The team approach was very appealing to me as I have been the PowerShell expert at my workplace so I was hoping to find a team where someone knew more than I did as I’m only […]
The judging is complete for the fourth and final event in the 2014 Winter Scripting Games. This Games was something very different in that we presented 4 we complex scenarios that were designed to be as close as possible to the type of tasks you may have to perform at work. The solutions required multi-file answers – there’s no way you could solve these with a one liner! All of the teams that submitted entries rose to meet the hardest challenge I’ve seen in a Scripting Games – and I’ve taken part of judged all but the first Games. All […]
If you’ve been following along with The Scripting Games over the past couple of iterations, you know that we’ve been trying some different, new things. This Winter Games, we did a team-based series of events that threw some really complex scenarios at you. However, we know some folks would like to see the next Summer Games include a less-complex track that perhaps includes a focus on one-liners. (Not that one-liners are an essential part of a work environment, but they’re fun and a good competitive thing – this is games, after all.) So we’re looking for your ideas. Drop a comment, and […]
There are a number of different ways to test for the presence of a registry key and value in PowerShell. Here’s how I like to go about it. We’ll use an example key HKLM:\SOFTWARE\TestSoftware with a single value Version: Click here to be redirected to the original post of this article on the author’s blog site where you can read the remainder of the article. Related posts: Adding and Removing Items from a PowerShell Array Reporting On Installed Windows Programs Via The Registry PowerShell Tip #1 from the Winner of the Advanced Category in the 2013 Scripting Games Scripting Games 2014 – event submission […]
A number of entries in the Winter Scripting Games use parameter validation, but some that I have seen may not be using it correctly or to its full potential. Writing functions or scripts require a variety of parameters which have different requirements based on a number of items. It could require a collection, objects of a certain type or even a certain range of items that it should only accept. The idea of parameter validation is that you can specify specific checks on a parameter that is being used on a function or script. If the value or collection that […]