Scripting Blog

A place to learn about PowerShell and share stories of automation

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.   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 12345, ...

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.   Whenever trouble happens in systems and people will call, And darkness rolls out causing your ...

Use PowerShell to Convert Date Formats Easily

Summary: Microsoft Scripting Guy Ed Wilson discusses four different techniques for using Windows PowerShell to convert date formats.   Hey, Scripting Guy! I have a problem. Although I am sure you hear this a lot, this problem is causing me a major problem at work. Here is the deal. We are a large company and we have operations both in the...

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.   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 there in...

Feedback usabilla icon