Scripting Blog [archived]

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

PowerTip: Use PowerShell to Search a Hash Table

Summary: Quickly search a hash table in Windows PowerShell. (image)  How can I easily search for information in a hash table full of data in Windows PowerShell? (image)  Plug in the name of a value, for example: [array]$Hashtable=$NULL$Hashtable+=@{Purple=54}$Hashtable+=@{People=37}$Hashtable+=@{Eater=78} To find the value called&...

Weekend Scripter: Use Hash Table with PowerShell to Create a Simple Piano

Summary: Use a hash table to play musical notes in the console. Honorary Scripting Guy, Sean Kearney, here—filling in for our good friend, Ed Wilson. Today I decided to have some fun. It’s the weekend, I was bored, and I had too much time on my hands. (I have friends who suggest this happens a lot!) I knew that in Windows ...