PowerShell: Hashtable Get All Keys
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
$dict = [ordered] @{"a" = 1; "b" = 2; } $dict.keys # a # b
$dict = [ordered] @{"a" = 1; "b" = 2; } $dict.values # 1 # 2