Showing archive results for October 2014

Oct 6, 2014
Post comments count0
Post likes count0

Automatically Create Hash Tables and Reverse Values

Doctor Scripto

Summary: Learn how to automatically create hash tables and reverse keys and values. Microsoft Scripting Guy, Ed Wilson, is here. The other day, I was playing around with Windows PowerShell, and thought I would create a couple of hash tables automatically. One hash table would contain all of the lowercase ASCII letters in the order of ASCII value, t...

Scripting Guy!Windows PowerShellscripting techniques
Oct 5, 2014
Post comments count0
Post likes count0

PowerTip: View All Values of an Enum

Doctor Scripto

Summary: Boe Prox shows how to view all values of an enum. How can I view all of the available values of an enum? Use the [Enum]::GetNames() method, for example:PS C: > [Enum]::GetNames([System.ConsoleColor])BlackDarkBlueDarkGreenDarkCyanDarkRedDarkMagentaDarkYellowGrayDarkGrayBlueGreenCyanRedMagentaYellowWhite

Scripting Guy!Windows PowerShellPowerTip
Oct 5, 2014
Post comments count0
Post likes count0

Weekend Scripter: Give Your PowerShell Console a Glassy Theme

Doctor Scripto

Summary: Boe Prox shows how to give the Windows PowerShell console a glass-like look. Honorary Scripting Guy, Boe Prox, here today filling in for my good friend, The Scripting Guy. Have you ever sat at your desk while working in the Windows PowerShell console and thought, “Wouldn’t it be great if this console had a more unique look? Per...

Scripting Guy!Windows PowerShellguest blogger
Oct 4, 2014
Post comments count0
Post likes count0

PowerTip: Find How Many Scripts Use Write-Host

Doctor Scripto

Summary: Use Windows PowerShell to find how many scripts use the Write-Host cmdlet.  I am trying to improve how I write Windows PowerShell scripts, and I want to reduce the number of times I use            Write-Host. How can I find how many times I used this cmdlet in my scripts?  Use the ...

Scripting Guy!Windows PowerShellPowerTip
Oct 4, 2014
Post comments count0
Post likes count0

Weekend Scripter: Change PowerShell Get-Help to Display Examples

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about changing the Get-Help cmdlet so it always displays examples. Microsoft Scripting Guy, Ed Wilson, is here. For the last several weeks, I have been working on a project at work. The documentation team talked to customers to see how they were using Windows PowerShell, and to see how and when the...

Scripting Guy!Windows PowerShellscripting techniques