Summary: Learn how to use Windows PowerShell to break a word into letters.
How can I use Windows PowerShell to break a word into letters?
Use the tochararray method, for example:
“dog”.tochararray...
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 ...
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...
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...
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...