RealDevTips > Software > Windows > Create and fill hash of arrays in Powershell Create and fill hash of arrays in Powershell Published on November 18, 2016 by Aleksei You can initialize and fill multidimension hashes (arrays) in powershell this way: $orderIds = New-Object System.Collections.ArrayList $orderIds = @{ ids = @(1,2,3,4,5); deps = @(‘one’, ‘two’, ‘three’, ‘four’, ‘five’) }; Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.
Leave a Reply