Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

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

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

Weekend Scripter: Fun with Number Ranges and PowerShell

Summary: Use Windows PowerShell to split arrays of numbers into contiguous ranges. Microsoft Scripting Guy, Ed Wilson, is here. Today I have a cool post from guest blogger, Zachary Loeber. Here is a little bit about Zachary: (image) Zachary Loeber is a solution architect with PSC Group. Zachary is a seasoned network and systems architect and ...