The top three tips for effective sorting in PowerShell

Summary: Learn the top three tips to effectively use Windows PowerShell to sort data in this blog post by the Microsoft Scripting Guy, Ed Wilson. One of the fundamental things that I need to do when I look at any kind of data is sort it so that I can make sense of what I… Read more

Use a script block to create custom groupings in PowerShell

Summary: Learn how to use a script block with the Group-Object cmdlet in Windows PowerShell to create custom groupings in this article by Microsoft Scripting Guy Ed Wilson. Good morning. Ed Wilson the Microsoft Scripting Guy is here. This week, I have been hanging out with a group of writers. It has been both fun… Read more

Discover relationships by using Group-Object in PowerShell

Summary: Learn how to use one of the most basic Windows PowerShell cmdlets, the Group-Object cmdlet, to see relationships among different objects. There are some things in life that just seem to always go together: jasmine flowers and green tea, scones and English breakfast tea, or even peanut butter and apples. In the world of… Read more

Find DSC resources that are available in the PowerShell Gallery

Summary: Learn how to use Windows PowerShell commands to easily find Desired State Configuration resources that are available in the PowerShell Gallery. One of the cool things about Windows PowerShell is that it makes exploring data easy. And everything is data in some form. Whether it is local or remote, whether it is plain text;… Read more

Overview of the PowerShell Get module to find scripts

Summary: In this blog post, I provide a quick overview of the PowerShell Get module and its various commands. Believe it or not, the Windows PowerShell Saturday event in Tampa, Florida is coming up pretty quickly. There are still some tickets available, but they have been going pretty quickly lately. There are some awesome speakers… Read more

PowerTip: Learn about PowerShell default parameter values

Summary: Learn about the default parameter values in Windows PowerShell.  How can I find more about default parameter values in Windows PowerShell?  Use the Get-Help cmdlet and search for *defaultParameter*. The following command returns a            list of Help topics that provide this information: help *DefaultParameter*… Read more

PowerTip: Return remainder after dividing two numbers

Summary: Use Windows PowerShell to return the remainder after dividing two numbers.  How can use Windows PowerShell to divide two numbers and only return the remainder (called a modulo operation)?  In Windows PowerShell, the modulo operator is the % sign. Here are a few examples of how to use it: PS C:\> 3 % 2 1 PS C:\> 5 %… Read more

PowerTip: Create list of approved PowerShell verbs

Summary: Learn how to easily produce a list of approved Windows PowerShell verbs.  How can I find what verbs are approved for use in a Windows PowerShell function?  Use the Get-Verb cmdlet, and to make it easy to peruse, send the output to the Out-GridView cmdlet: get-verb | Out-GridView… Read more

PowerTip: Find related cmdlet aliases

Summary: Learn how to find aliases related to a series of cmdlets.  How can I find aliases that are related to a series of Windows PowerShell cmdlets, such as processes?  Use the Get-Alias cmdlet and specify a wildcard character for the definition parameter, for example: Get-Alias -Definition "*process"… Read more