Showing archive results for 2014

Oct 7, 2014
Post comments count0
Post likes count0

PowerTip: Put Array of Letters Back into a Word with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to put an array of letters back together to form a word.  I split a word by converting it to a chararray, and now I want to put it back together.            How can I use Windows PowerShell to do this?  Use the –Join operator to put the characters back toge...

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

Converting Words to ASCII Numbers and Back with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to convert words to ASCII numbers and back again. Microsoft Scripting Guy, Ed Wilson, is here. Today, I am sipping a nice cup of Earl Grey tea with just a little jasmine in it. Along with a cinnamon stick, it is a nice mellow cup. I am checking my email sent to scripter@microsoft.com on my Surface Pro 3, and pla...

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

PowerTip: Break a Word into Letters with PowerShell

Doctor Scripto

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()

Scripting Guy!Windows PowerShellPowerTip
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