Scripting Blog

A place to learn about PowerShell and share stories of automation

PowerShell Pie for Pi Day

Summary: Use the built in pi value in an impromptu function to get the circumference of a circle by using Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife and I are still pretty geeked out from the first ever Windows PowerShell Saturday that was held in Columbus Ohio. Add that today will be the third live ...

Use a PowerShell Function to Find Specific WMI Classes

Summary: Use a Windows PowerShell function to find WMI classes with specific qualifiers.   Microsoft Scripting Guy Ed Wilson here. In Thursday’s article, I talked about using the Set-WmiInstance cmdlet to work with WMI classes. One of the parameters, the class parameter, works with WMI singleton objects. Now, it is certainly ...

Use PowerShell Parameter Attributes to Avoid Errors

Summary: Use Windows PowerShell parameter attributes to avoid input errors in a function.   Microsoft Scripting Guy Ed Wilson here. This week is great. The Scripting Wife and I are enjoying meeting Windows PowerShell luminaries. I am working with a group of IT pros to help them to learn Windows PowerShell, and the weather has been ...

Naming and Designing Advanced PowerShell Functions

Summary: Microsoft Scripting Guy Ed Wilson discusses naming and designing advanced Windows PowerShell functions in relation to his Local User Management Module. Microsoft Scripting Guy Ed Wilson here. The cool thing about today is that it is Canada Day. This means that my boss back in Redmond is off today. Of course, Monday is July 4th, and ...

Create a Truly Advanced PowerShell Function

  Summary: Learn how to create a true advanced function that interacts with the Windows PowerShell pipeline.  Microsoft Scripting Guy Ed Wilson here. Sean Kearney, Microsoft Windows PowerShell MVP, has been burning up the keyboard lately with ideas for guest blog posts. I hate to disappoint him by not sharing his hard work with you...