Forum Discussion

John_Dodo's avatar
John_Dodo
Brass Contributor
Feb 10, 2022
Solved

Ordering data in hash of hashes

Hello,   I have this piece of code :       ... #Get GPOs with all settings disabled $GpoList | Where-Object {$_.gpostatus -eq "allsettingsdisabled"} | ForEach-Object{ ...
  • dotpwsh's avatar
    Feb 10, 2022
    Take a look at ordered hashtables: https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-hashtable?view=powershell-7.2#ordered-hashtables

Resources