From 8b17f9e3a2fe37ecc635f84059a319f409897b9e Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 30 Jul 2020 22:55:01 +0200 Subject: [PATCH] Updated policies to use int instead of strings --- Private/ConvertTo-XMLAccountPolicy.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Private/ConvertTo-XMLAccountPolicy.ps1 b/Private/ConvertTo-XMLAccountPolicy.ps1 index 4d788fe..d522bf9 100644 --- a/Private/ConvertTo-XMLAccountPolicy.ps1 +++ b/Private/ConvertTo-XMLAccountPolicy.ps1 @@ -29,7 +29,7 @@ if ($GPOEntry.SettingBoolean) { $CreateGPO[$($GPOEntry.Name)] = if ($GPOEntry.SettingBoolean -eq 'true') { 'Enabled' } elseif ($GPOEntry.SettingBoolean -eq 'false') { 'Disabled' } else { 'Not set' }; } elseif ($GPOEntry.SettingNumber) { - $CreateGPO[$($GPOEntry.Name)] = $GPOEntry.SettingNumber + $CreateGPO[$($GPOEntry.Name)] = [int] $GPOEntry.SettingNumber } } $CreateGPO['Linked'] = $GPO.Linked