Showing archive results for 2016

Apr 19, 2016
Post comments count0
Post likes count0

Use a script block to create custom groupings in PowerShell

Doctor Scripto

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 and educational. It is always good...

Scripting Guy!Windows PowerShellgetting started
Apr 18, 2016
Post comments count0
Post likes count0

Discover relationships by using Group-Object in PowerShell

Doctor Scripto

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 Windows PowerShell,...

Scripting Guy!Windows PowerShellscripting techniques
Apr 17, 2016
Post comments count0
Post likes count1

PowerTip: Use PowerShell to display a percentage that has two decimal places

Doctor Scripto

Summary: Use Windows PowerShell to display a percentage as a two place number.  How can I use Windows PowerShell to display a number as a percentage that has two decimal places?  Use the -f format specifier, and specify a pattern as “{0:p2}”. On the other side of the -f format specifier, perform your percentage calculation. Here is an example: PS ...

Scripting Guy!Windows PowerShellPowerTip
Apr 15, 2016
Post comments count0
Post likes count0

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Doctor Scripto

Summary: Learn how to use a regular expression pattern to remove non-alphabetic characters from a string by using Windows PowerShell.  How can I use Windows PowerShell to remove non-alphabetic characters from a string?  To remove nonalphabetic characters from a string, you can use the -Replace operator and substitute an empty string ‘’ for the non...

Scripting Guy!Windows PowerShellPowerTip
Apr 15, 2016
Post comments count0
Post likes count0

Additional resources for text analysis by using PowerShell

Doctor Scripto

Summary: This is a summary of some of the additional resources for working with text and Windows PowerShell. Good day. Microsoft Scripting Guy, Ed Wilson, is here. So, here's the deal. We are going along and decide to write a simple Windows PowerShell script. Before we know it, the thing has morphed into dozens of lines. And, also before we know i...

Scripting Guy!Windows PowerShellscripting techniques