Scripting Blog [archived]

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

Use PowerShell to Detect Activation Status

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to display Windows activation status. (image)  Hey, Scripting Guy! The previous network administrator at my company was not attentive to his work. I am not sure what he actually did for a living, but it certainly was not network administration. I ...

Weekend Scripter: Don’t Break PowerShell Script with Line Breaks

Summary: Microsoft Scripting Guy, Ed Wilson, talks about line breaks in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. This morning, the weather is cool for a change. It was a great morning to get up and take a walk through a peach grove. There is actually a sidewalk through the peach grove here. Peach season is nearly over, ...

PowerTip: PowerShell Tabs

Summary: Understand Windows PowerShell tabs. (image)  How can I use Windows PowerShell to efficiently add 1, 2, or 3 tabs to a string? (image)  Use the `t character for a single tab. Use `t`t for two tabs, and multiply them for three or more (such as “`t”*3).           &...

Weekend Scripter: Space: Not the Final Frontier in PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about spacing in Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am sipping a cup of English Breakfast tea. I added some orange peel and fresh squeezed Meyer lemon juice to it. I also added a cinnamon stick. The result is nice and tangy—great to ...