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