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
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
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
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
- Categories: Hey Scripting Guy!
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
- Categories: Hey Scripting Guy!
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
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
Summary: Learn how to easily add a number to an existing value stored in a variable and update the value of the variable. How can I use Windows PowerShell to add a number to a value stored in a variable so that I can update the value in that variable… Read more
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
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