Closed PrzemyslawKlys closed 2 years ago
I've objects that look more or less like this:
Node localhost { AADConditionalAccessPolicy 706192c4-1a75-465c-9592-479a9e90858e { ApplicationEnforcedRestrictionsIsEnabled = $False; #BuiltInControls = @("block"); BuiltInControls = @( MSFT_SCLabelSetting { Key = 'contenttype' Value = 'File Email Site UnifiedGroup' } MSFT_SCLabelSetting { Key = 'tooltip' Value = 'Disclosure of the information has substantial negative impact' } ); ClientAppTypes = @("exchangeActiveSync","other"); CloudAppSecurityIsEnabled = $False; CloudAppSecurityType = ""; } }
While you handle correctly strings, numbers, you overwrite the array if it's CIM instance with hashtable instead of adding it to array.
I've objects that look more or less like this:
While you handle correctly strings, numbers, you overwrite the array if it's CIM instance with hashtable instead of adding it to array.