Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Build a hexadecimal clock in PowerShell – Part 4

Summary: Use PowerShell to navigate the neutral zone. Honorary Scripting Guy, Sean Kearney, is here today to continue forth (not COBOL nor even Visual BASIC) into our silly yet fun quest to build a hexadecimal clock by using the PowerShell console. It does seem silly, doesn’t it? Yet, consider some of the things that we’ve learned in ...

Build a hexadecimal clock in PowerShell – Part 2

Summary: Manipulate string data from Get-Date in PowerShell. Honorary Scripting Guy, Sean Kearney, is here today to have a little more fun with our silly project to build a hexadecimal clock in the PowerShell console. Well, after all, who said scripting wasn’t allowed to be fun? That’s usually how I learn, by playing about! Yesterday, ...

PowerTip: Extend a string array in PowerShell

Summary: Use the built in features of PowerShell to easily add new Element to a string array. (image) I created an array of strings in PowerShell, but I need to add to it. Is there a simple way to do this? (image) Absolutely. Just use += to add an element to your string array. In the following example, we add a new element to the array that...