Scripting Blog [archived]

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

Reusing PowerShell Code—What is Best?

Summary: In this Weekend Scripter blog, Microsoft Scripting Guy, Ed Wilson, discusses considerations for code reuse. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. It has been really fun these past few weeks reviewing all of the scripts that were submitted for the 2011 Scripting Games. One of the questions I have seen crop up ...

Modify the PowerShell ISE to Remove Aliases from Scripts

Summary: In this weekend scripter blog, learn how to modify the Windows PowerShell ISE so that it automatically removes aliases from a script. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, here. The PowerShell Deep Dive in Las Vegas, Nevada was a real treat. The Scripting Wife and I both enjoyed meeting all of the people in real life ...

Use Regular Expression Pattern when Parsing PowerShell Script

Summary: Part three in the series about replacing Windows PowerShell aliases with full cmdlet names uses a regular expression pattern and the tokenizer. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. With the final scripts uploaded for the 2011 Scripting Games, the judges are hard at work finishing the grading in preparation for...

Using the PowerShell Tokenizer to Find Commands in Text

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use the Windows PowerShell tokenizer to parse text and identify commands. Microsoft Scripting Guy, Ed Wilson, here. There are still five days for you to submit your entries for the 2011 Scripting Games. Events 1 through 5 are in the bag, but you can still upload scripts for events 6 ...

Create a Hash Table with PowerShell Aliases and Definitions

Summary: In preparation for creating a Windows PowerShell ISE add-on to automatically remove aliases, Scripting Guy Ed Wilson builds a hash table with alias definitions. Microsoft Scripting Guy, Ed Wilson, here. It has finally happened, I unveiled the last event of the 2011 Windows PowerShell Scripting Games on Friday. Contestants still have a...