Scripting Blog [archived]

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

Fun with PowerShell Functions

Summary: Ed Wilson, Microsoft Scripting Guy, talks about basic design considerations for Windows PowerShell functions. (image)  Hey, Scripting Guy! I keep hearing about functions, but I really do not know what they are, how to create one, or even how to use one. Can you help me with this? I am not a programmer, but it seems likely that ...

Use a PowerShell Function to Determine Miles to Go

Summary: Microsoft Scripting Guy, Ed Wilson, talks about a Windows PowerShell function to determine miles remaining to meet challenge. Microsoft Scripting Guy, Ed Wilson, is here. If you are friends with me on Facebook, you know that in October I accepted a challenge to run a hundred miles before January 31, 2015. I was doing really well until...

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