Summary: Learn how to display keys from a hash table.
How can I display only the keys in a Windows PowerShell hash table?
Store the hash table in a variable, and then use the Keys property, for example:
$a = @{a=1;b=2;c=3;d=4}
$a.Keys
Summary: Learn how to display keys from a hash table.
How can I display only the keys in a Windows PowerShell hash table?
Store the hash table in a variable, and then use the Keys property, for example:
$a = @{a=1;b=2;c=3;d=4}
$a.Keys
The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.
0 comments