I'm having a problem, it looks simple but can't find a solution; I am iterating a hash table in PowerShell it looks like this:
foreach($tool in $otherTools.GetEnumerator() | Sort Name)
{
#tried echo $tool.Name
#tried echo $tool.Value
#tried echo $tool.Key
}
but nothing above works. The reason is I want to use the switch statement inside by key.
HashTable looks like:
Name Value
---- -----
One testone
Two TestTwo