PowerShell: Hashtable Get All Keys

By Xah Lee. Date: .

Get all Keys

$dict = [ordered] @{"a" = 1; "b" = 2; }

$dict.keys

<#
a
b
#>

Get All Values

$dict = [ordered] @{"a" = 1; "b" = 2; }

$dict.values
<#
1
2
#>

PowerShell Hashtable, Dictionary