Showing results for functions - Scripting Blog [archived]

Apr 11, 2013
0
0

Named Arguments for PowerShell Functions: Best Practices

Doctor Scripto Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using named arguments in Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. If I go to the trouble of writing a Windows PowerShell script, I generally do not use unnamed arguments (such as $args as I illustrated yesterday in Accepting Arguments for PowerShell Functions...

Scripting Guy!Windows PowerShellscripting techniques
Apr 10, 2013
0
0

Accepting Arguments for PowerShell Functions: Best Practices

Doctor Scripto Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about the best practices surrounding accepting input for a Windows PowerShell function. Microsoft Scripting Guy, Ed Wilson, is here. April in the Carolina’s is a special time. In fact, it is my favorite time of the year here. This is because the weather is invariably mild. This week, it has ...

Scripting Guy!Windows PowerShellscripting techniques
Apr 9, 2013
0
0

Using PowerShell Functions: Best Practices

Doctor Scripto Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about some best practices for using Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. Windows PowerShell functions are really powerful, and at the same time, they are incredibly simple to create. This makes Windows PowerShell functions flexible and functional. But this ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 8, 2012
0
0

Weekend Scripter: Easily Add Whatif Support to Your PowerShell Functions

Doctor Scripto Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to easily add whatif support to your Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. I love demoing Windows PowerShell to people who have never seen it—and believe it or not, there are still IT Pros who have not seen or used Windows PowerShell. Most people have ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 7, 2012
0
0

Weekend Scripter: Cmdletbinding Attribute Simplifies PowerShell Functions

Doctor Scripto Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using the cmdletbinding attribute to simplify Windows PowerShell functions. Microsoft Scripting Guy, Ed Wilson, is here. This morning I was sitting around playing with Windows PowerShell, and I realized that I had not written much about the cmdletbinding attribute. So here goes… The ...

Scripting Guy!Windows PowerShellscripting techniques

Feedback