Showing archive results for September 2014

Sep 8, 2014
Post comments count1
Post likes count0

Use PowerShell to Detect Activation Status

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and WMI to display Windows activation status.  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 think he was a p...

Scripting Guy!Windows PowerShellscripting techniques
Sep 7, 2014
Post comments count3
Post likes count2

PowerTip: New Lines with PowerShell

Doctor Scripto

Summary: Create new lines with Windows PowerShell.  How can I use Windows PowerShell to add a new line between lines for my text output?  Use the `n character, for example: PS C:\> "string with new line `n in it" string with new line  in it Note  If you need a carriage return, use `r. For a carri...

Scripting Guy!Windows PowerShellPowerTip
Sep 7, 2014
Post comments count1
Post likes count0

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

Doctor Scripto

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, so th...

Scripting Guy!Windows PowerShellscripting techniques
Sep 6, 2014
Post comments count0
Post likes count0

PowerTip: PowerShell Tabs

Doctor Scripto

Summary: Understand Windows PowerShell tabs.  How can I use Windows PowerShell to efficiently add 1, 2, or 3 tabs to a string?  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).            Here are examples:...

Scripting Guy!Windows PowerShellPowerTip
Sep 6, 2014
Post comments count0
Post likes count0

Weekend Scripter: Space: Not the Final Frontier in PowerShell

Doctor Scripto

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 help on...

Scripting Guy!Windows PowerShellscripting techniques