by Michael Simmons | May 28, 2015 | PowerShell (Modern), Windows PowerShell (Legacy)
I’ve been rereading the Windows PowerShell Cookbook and I came across a variable I hadn’t noticed before… It turns out to be related to the -match comparison operator. -Match performs a regular expression comparison. A simple way of thinking...
by Michael Simmons | Jan 24, 2015 | PowerShell (Modern)
I was going nuts trying to sort an array into a random order. I was hoping for something in PowerShell that would be along the lines of Shuffle() in PHP or Ruby. In fact, after looking at it I was a little surprised at all of the things that an array can’t do in...
by Michael Simmons | Mar 25, 2013 | PowerShell (Modern)
There are a couple of very easy ways to get a find enum values in PowerShell. Enums are often used when choosing an option as a parameter in a PowerShell command. This article shows you exactly how to get those values for any enumerated list type (called...