Scripting Blog [archived]

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

Use PowerShell and Conditional Formatting to Format Numbers

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell and conditional formatting to format numbers. (image)  Hey, Scripting Guy! One of the big problems I have when it comes to using Windows PowerShell is figuring out how to properly format numbers. I mean, I can easily use [int] to get rid of hundreds of ...

Use PowerShell to Format Strings with Composite Formatting

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to specify composite formatting to format strings. (image)  Hey, Scripting Guy! Often I need to create an output string that is the result of multiple computations. In the past, I have used multiple lines to create this sort of outputs, but now I would like ...