Category Archives: Scripting Games

Scripting Game puzzle – – January 2016

Here’s how I’d solve the puzzle function get-starttime {    [CmdletBinding()]    param(        [parameter(                ValueFromPipeline=$true,                 ValueFromPipelineByPropertyName=$true)]        [Alias(‘CN’, ‘Computer’)]        [ValidateNotNullOrEmpty()]          [string[]]$computername = $env:COMPUTERNAME    )        PROCESS {            foreach ($computer in $computername){            $props = [ordered]@{                ComputerName = $computer                StartTime = ”                … Continue reading

Posted in PowerShell and CIM, Powershell Basics, Scripting Games | Leave a comment

2015 December Scripting Games Puzzle

The December 2015 puzzle was based on the 12 Days of Christmas song.  Starting with this here-string. $list = @”1 Partridge in a pear tree2 Turtle Doves3 French Hens4 Calling Birds5 Golden Rings6 Geese a laying7 Swans a swimming8 Maids … Continue reading

Posted in Powershell Basics, Scripting Games | Leave a comment

Scripting Games September 2015

The puzzle for September is here http://powershell.org/wp/2015/09/05/september-2015-scripting-games-puzzle/ with the write up published here http://powershell.org/wp/2015/10/03/2015-september-scripting-games-wrap-up/ Personally I don’t like the approach as it leads to code that’s difficult to read and maintain. I much prefer a simpler more verbose approach that … Continue reading

Posted in Powershell, Scripting Games | Leave a comment

Scripting Games–August 2015

The August 2015 Scripting Games puzzle was a simple ‘get data from a web service’ request. You had to retrieve data from a given web service £> Invoke-RestMethod -Uri ‘http://www.telize.com/geoip’ | Select-Object -Property  longitude, latitude, continent_code, timezone longitude latitude continent_code … Continue reading

Posted in Powershell, Scripting Games | Leave a comment

Scripting Games July 12015 thoughts on the solution

The July 2015 puzzle can be found here: http://powershell.org/wp/2015/07/04/2015-july-scripting-games-puzzle/ Write a one-liner that produces the following output (note that property values will be different from computer to computer; that’s fine).  Write a one-liner that produces the following output (note that … Continue reading

Posted in Powershell Basics, Scripting Games | Leave a comment

Scripting Games July 2015 puzzle

Head over to http://powershell.org/wp/2015/07/04/2015-july-scripting-games-puzzle/ for our inaugural Scripting Games puzzle. I’ll publish a solution at the end of the month

Posted in Powershell, powershell.org, Scripting Games | Leave a comment

Scripting Games

See what’s happening with the Scripting Games –  http://blogs.technet.com/b/heyscriptingguy/archive/2015/06/27/powershell-spotlight-yeah-it-s-the-scripting-games.aspx   Thank about the requirements and offer to help as outlined in the article.

Posted in Scripting Games | Leave a comment