Scripting Blog [archived]

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

Convert a Script to a PowerShell Function

Summary: Microsoft Scripting Guy, Ed Wilson, talks about converting a script to a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. When I have a script that I think I will use more than once or twice, it often makes sense for me to convert it to a function. If it is something I will use on a regular basis, I might ...

Extend the Encode/Decode PowerShell Script

Summary: Microsoft Scripting Guy, Ed Wilson, talks about extending his ASCII encode/decode Windows PowerShell script. Microsoft Scripting Guy, Ed Wilson, is here. I am a huge advocate of learning by playing around. Maybe that is why I did such a good job back when I was in kindergarten—and why I had such a tough time in high school. Who ...

Converting Words to ASCII Numbers and Back with PowerShell

Summary: Use Windows PowerShell to convert words to ASCII numbers and back again. Microsoft Scripting Guy, Ed Wilson, is here. Today, I am sipping a nice cup of Earl Grey tea with just a little jasmine in it. Along with a cinnamon stick, it is a nice mellow cup. I am checking my email sent to scripter@microsoft.com on my Surface Pro 3, ...

Automatically Create Hash Tables and Reverse Values

Summary: Learn how to automatically create hash tables and reverse keys and values. Microsoft Scripting Guy, Ed Wilson, is here. The other day, I was playing around with Windows PowerShell, and thought I would create a couple of hash tables automatically. One hash table would contain all of the lowercase ASCII letters in the order of ASCII ...

Weekend Scripter: Sorting PowerShell Hash Tables

Summary: Microsoft Scripting Guy, Ed Wilson, talks about sorting hash tables. Microsoft Scripting Guy, Ed Wilson, is here. Today is part of the Scripting Wife’s birthday weekend, and so we are heading out to see the Friesian horse keuring. She has watched the event via live streaming on the Internet, but never attended one in person&...