Skip to content

Instantly share code, notes, and snippets.

@marcgeld
Created April 5, 2017 11:43
Show Gist options
  • Save marcgeld/f42e1177dc5af5c65efcd82232f29464 to your computer and use it in GitHub Desktop.
Save marcgeld/f42e1177dc5af5c65efcd82232f29464 to your computer and use it in GitHub Desktop.
Powershell: Hashtable
# Hashtable
[Hashtable] $hTable = @{
mykey = "myvalue"
}
Write-Host "Table: " ( $hTable | Format-Table | Out-String )
#Write-Host "Enumerator: " ( | Format-Table | Out-String )
#| Where-Object { $_.Key -in ('a', 'b', 'd') }
Write-Host "Get 'mykey' Value: " ( $hTable.'mykey' | Out-String )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment