21 February 2021

Create hashtable from PSObject

$GroupDataObjectHash = [ordered]@{}

$GroupDataObject.PSObject.Properties.Name | %{$GroupDataObjectHash.Add($PSItem, $GroupDataObject.$PSItem)}

No comments:

Post a Comment