Scripting Blog [archived]

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

Cool PowerShell Game Teaches Cmdlet Names

Summary: Learn Windows PowerShell cmdlet names by taking the Dr. Scripto Challenge. Microsoft Scripting Guy Ed Wilson here. The Scripting Wife and I are on a road trip in Canada. We had a wonderful time in Toronto with Windows PowerShell MVP Sean Kearney. Now we are heading to Ottawa where we plan to meet with Windows PowerShell MVP Kirk ...

Two Simple PowerShell Methods to Remove the Last Letter of a String

Summary: Learn two simple Windows PowerShell methods to remove the last letter of a string.   (image) Hey, Scripting Guy! I have, what should be a simple question. I need to be able to remove only the last character from a string. For example, if I have a string the scripts, I want the string to be the script instead. If I have the number...

Convert Hexadecimal to ASCII Using PowerShell

Summary: Superhero BATCHman defeats evil Hextor and converts hexadecimal to ASCII to retrieve passwords.   Microsoft Scripting Guy Ed Wilson here. Sean Kearney is back again, and this time he delivers Episode 7 of the BATCHman series.   (image) Whenever trouble happens in systems and people will call, And darkness rolls out causing ...

Use PowerShell to Open Files That Contain Matching Words

Summary: Learn how to use Windows PowerShell to search a folder for matching strings and to open them automatically in Notepad.   (image) Hey, Scripting Guy! I have been enjoying using the Select-String cmdlet, but I have a question. When I use Select-String, it lists the file that it finds the match in, but I have to copy and paste from ...