Showing archive results for 2011

May 1, 2011
Post comments count0
Post likes count0

Best Practice for Using Aliases in PowerShell Scripts

ScriptingGuy1

Summary: Microsoft Scripting Guy, Ed Wilson, discusses the use of aliases in Windows PowerShell scripts. He covers the pros and cons in this blog. Weekend Scripter Microsoft Scripting Guy, Ed Wilson, is here. “You can have my aliases when you pry my cold dead fingers from my keyboard,” was not one of the emails I received during the 20...

Scripting Guy!Windows PowerShellscripting techniques
Apr 30, 2011
Post comments count0
Post likes count0

Reusing PowerShell Code—What is Best?

ScriptingGuy1

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 on the...

Scripting Guy!Windows PowerShellscripting techniques
Apr 24, 2011
Post comments count0
Post likes count0

Modify the PowerShell ISE to Remove Aliases from Scripts

ScriptingGuy1

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 that w...

Scripting Guy!Windows PowerShellWeekend Scripter
Apr 23, 2011
Post comments count0
Post likes count0

Use Regular Expression Pattern when Parsing PowerShell Script

ScriptingGuy1

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 reve...

Scripting Guy!Windows PowerShellscripting techniques
Apr 17, 2011
Post comments count0
Post likes count0

Using the PowerShell Tokenizer to Find Commands in Text

ScriptingGuy1

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 through ...

Scripting Guy!Windows PowerShellscripting techniques