Monthly Archives: November 2015

Powershell Hash and Arrays

Two ways of makingĀ a table of hash tables and arrays. [codesyntax lang=”powershell”] #Alt1 $Array = New-Object System.Collections.ArrayList #Foreach () { $Hash = New-Object -TypeName PSObject -Property @{ Status = “Ok” DisplayName = “Test” } $Array.Add($Hash) | Out-Null Remove-Variable $Hash -ErrorAction … Continue reading

Posted in Powershell | Comments Off on Powershell Hash and Arrays