DscResources/Intune/Intune.schema.psm1
# (2024-11-08 01:25:29) Generated using Microsoft365DSC v1.24.1106.1 Configuration 'Intune' { param ( [Parameter(Mandatory = $true)] [System.String] $ApplicationId, [Parameter(Mandatory = $true)] [System.String] $TenantId, [Parameter(Mandatory = $true)] [System.String] $CertificateThumbprint ) Import-DscResource -ModuleName Microsoft365DSC foreach ($AccountProtectionLocalAdministratorPasswordSolutionPolicy in $ConfigurationData.NonNodeData.Intune.AccountProtectionLocalAdministratorPasswordSolutionPolicies) { $resourceTitle = 'IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy-{0}' -f $AccountProtectionLocalAdministratorPasswordSolutionPolicy.DisplayName $parameters = $AccountProtectionLocalAdministratorPasswordSolutionPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AccountProtectionLocalUserGroupMembershipPolicy in $ConfigurationData.NonNodeData.Intune.AccountProtectionLocalUserGroupMembershipPolicies) { $resourceTitle = 'IntuneAccountProtectionLocalUserGroupMembershipPolicy-{0}' -f $AccountProtectionLocalUserGroupMembershipPolicy.DisplayName $parameters = $AccountProtectionLocalUserGroupMembershipPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneAccountProtectionLocalUserGroupMembershipPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('LocalUserGroupCollection')) { $parameters.LocalUserGroupCollection = $parameters.LocalUserGroupCollection | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneAccountProtectionLocalUserGroupCollection' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAccountProtectionLocalUserGroupMembershipPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AccountProtectionPolicy in $ConfigurationData.NonNodeData.Intune.AccountProtectionPolicies) { $resourceTitle = 'IntuneAccountProtectionPolicy-{0}' -f $AccountProtectionPolicy.DisplayName $parameters = $AccountProtectionPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneAccountProtectionPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAccountProtectionPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AccountProtectionPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.AccountProtectionPoliciesWindows10) { $resourceTitle = 'IntuneAccountProtectionPolicyWindows10-{0}' -f $AccountProtectionPolicyWindows10.DisplayName $parameters = $AccountProtectionPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DeviceSettings')) { $parameters.DeviceSettings = $parameters.DeviceSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogDeviceSettings_IntuneAccountProtectionPolicyWindows10' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserSettings')) { $parameters.UserSettings = $parameters.UserSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogUserSettings_IntuneAccountProtectionPolicyWindows10' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAccountProtectionPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AntivirusPolicyLinux in $ConfigurationData.NonNodeData.Intune.AntivirusPoliciesLinux) { $resourceTitle = 'IntuneAntivirusPolicyLinux-{0}' -f $AntivirusPolicyLinux.DisplayName $parameters = $AntivirusPolicyLinux $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('exclusions')) { $parameters.exclusions = $parameters.exclusions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogExclusions' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('threatTypeSettings')) { $parameters.threatTypeSettings = $parameters.threatTypeSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogthreatTypeSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAntivirusPolicyLinux' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AntivirusPolicyWindows10SettingCatalog in $ConfigurationData.NonNodeData.Intune.AntivirusPoliciesWindows10SettingCatalog) { $resourceTitle = 'IntuneAntivirusPolicyWindows10SettingCatalog-{0}' -f $AntivirusPolicyWindows10SettingCatalog.DisplayName $parameters = $AntivirusPolicyWindows10SettingCatalog $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAntivirusPolicyWindows10SettingCatalog' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppAndBrowserIsolationPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.AppAndBrowserIsolationPoliciesWindows10) { $resourceTitle = 'IntuneAppAndBrowserIsolationPolicyWindows10-{0}' -f $AppAndBrowserIsolationPolicyWindows10.DisplayName $parameters = $AppAndBrowserIsolationPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAppAndBrowserIsolationPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppAndBrowserIsolationPolicyWindows10ConfigMgr in $ConfigurationData.NonNodeData.Intune.AppAndBrowserIsolationPoliciesWindows10ConfigMgr) { $resourceTitle = 'IntuneAppAndBrowserIsolationPolicyWindows10ConfigMgr-{0}' -f $AppAndBrowserIsolationPolicyWindows10ConfigMgr.DisplayName $parameters = $AppAndBrowserIsolationPolicyWindows10ConfigMgr $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAppAndBrowserIsolationPolicyWindows10ConfigMgr' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppCategory in $ConfigurationData.NonNodeData.Intune.AppCategories) { $resourceTitle = 'IntuneAppCategory-{0}' -f $AppCategory.DisplayName $parameters = $AppCategory $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneAppCategory' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppConfigurationDevicePolicy in $ConfigurationData.NonNodeData.Intune.AppConfigurationDevicePolicies) { $resourceTitle = 'IntuneAppConfigurationDevicePolicy-{0}' -f $AppConfigurationDevicePolicy.Id $parameters = $AppConfigurationDevicePolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('PermissionActions')) { $parameters.PermissionActions = $parameters.PermissionActions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroidPermissionAction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Settings')) { $parameters.Settings = $parameters.Settings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphappConfigurationSettingItem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAppConfigurationDevicePolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppConfigurationPolicy in $ConfigurationData.NonNodeData.Intune.AppConfigurationPolicies) { $resourceTitle = 'IntuneAppConfigurationPolicy-{0}' -f $AppConfigurationPolicy.DisplayName $parameters = $AppConfigurationPolicy $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CustomSettings')) { $parameters.CustomSettings = $parameters.CustomSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneAppConfigurationPolicyCustomSetting' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAppConfigurationPolicy' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppleMDMPushNotificationCertificate in $ConfigurationData.NonNodeData.Intune.AppleMDMPushNotificationCertificates) { $resourceTitle = 'IntuneAppleMDMPushNotificationCertificate-{0}' -f $AppleMDMPushNotificationCertificate.AppleIdentifier $parameters = $AppleMDMPushNotificationCertificate $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneAppleMDMPushNotificationCertificate' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ApplicationControlPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.ApplicationControlPoliciesWindows10) { $resourceTitle = 'IntuneApplicationControlPolicyWindows10-{0}' -f $ApplicationControlPolicyWindows10.DisplayName $parameters = $ApplicationControlPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneApplicationControlPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppProtectionPolicyAndroid in $ConfigurationData.NonNodeData.Intune.AppProtectionPoliciesAndroid) { $resourceTitle = 'IntuneAppProtectionPolicyAndroid-{0}' -f $AppProtectionPolicyAndroid.DisplayName $parameters = $AppProtectionPolicyAndroid $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneAppProtectionPolicyAndroid' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AppProtectionPolicyiOS in $ConfigurationData.NonNodeData.Intune.AppProtectionPoliciesiOS) { $resourceTitle = 'IntuneAppProtectionPolicyiOS-{0}' -f $AppProtectionPolicyiOS.DisplayName $parameters = $AppProtectionPolicyiOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneAppProtectionPolicyiOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ASRRulesPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.ASRRulesPoliciesWindows10) { $resourceTitle = 'IntuneASRRulesPolicyWindows10-{0}' -f $ASRRulesPolicyWindows10.DisplayName $parameters = $ASRRulesPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneASRRulesPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($AttackSurfaceReductionRulesPolicyWindows10ConfigManager in $ConfigurationData.NonNodeData.Intune.AttackSurfaceReductionRulesPoliciesWindows10ConfigManager) { $resourceTitle = 'IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager-{0}' -f $AttackSurfaceReductionRulesPolicyWindows10ConfigManager.DisplayName $parameters = $AttackSurfaceReductionRulesPolicyWindows10ConfigManager $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DerivedCredential in $ConfigurationData.NonNodeData.Intune.DerivedCredentials) { $resourceTitle = 'IntuneDerivedCredential-{0}' -f $DerivedCredential.DisplayName $parameters = $DerivedCredential $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDerivedCredential' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceAndAppManagementAssignmentFilter in $ConfigurationData.NonNodeData.Intune.DeviceAndAppManagementAssignmentFilters) { $resourceTitle = 'IntuneDeviceAndAppManagementAssignmentFilter-{0}' -f $DeviceAndAppManagementAssignmentFilter.DisplayName $parameters = $DeviceAndAppManagementAssignmentFilter $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceAndAppManagementAssignmentFilter' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCategory in $ConfigurationData.NonNodeData.Intune.DeviceCategories) { $resourceTitle = 'IntuneDeviceCategory-{0}' -f $DeviceCategory.DisplayName $parameters = $DeviceCategory $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCategory' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.Intune.ContainsKey('DeviceCleanupRule')) { $resourceTitle = 'DeviceCleanupRuleDefaults' $parameters = $ConfigurationData.NonNodeData.Intune.DeviceCleanupRule $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCleanupRule' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyAndroid in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesAndroid) { $resourceTitle = 'IntuneDeviceCompliancePolicyAndroid-{0}' -f $DeviceCompliancePolicyAndroid.DisplayName $parameters = $DeviceCompliancePolicyAndroid $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyAndroid' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyAndroidDeviceOwner in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesAndroidDeviceOwner) { $resourceTitle = 'IntuneDeviceCompliancePolicyAndroidDeviceOwner-{0}' -f $DeviceCompliancePolicyAndroidDeviceOwner.DisplayName $parameters = $DeviceCompliancePolicyAndroidDeviceOwner $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyAndroidDeviceOwner' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyAndroidWorkProfile in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesAndroidWorkProfile) { $resourceTitle = 'IntuneDeviceCompliancePolicyAndroidWorkProfile-{0}' -f $DeviceCompliancePolicyAndroidWorkProfile.DisplayName $parameters = $DeviceCompliancePolicyAndroidWorkProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyAndroidWorkProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyiOs in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesiOs) { $resourceTitle = 'IntuneDeviceCompliancePolicyiOs-{0}' -f $DeviceCompliancePolicyiOs.DisplayName $parameters = $DeviceCompliancePolicyiOs $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('RestrictedApps')) { $parameters.RestrictedApps = $parameters.RestrictedApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_appListItem' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyiOs' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyMacOS in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesMacOS) { $resourceTitle = 'IntuneDeviceCompliancePolicyMacOS-{0}' -f $DeviceCompliancePolicyMacOS.DisplayName $parameters = $DeviceCompliancePolicyMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceCompliancePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceCompliancePoliciesWindows10) { $resourceTitle = 'IntuneDeviceCompliancePolicyWindows10-{0}' -f $DeviceCompliancePolicyWindows10.DisplayName $parameters = $DeviceCompliancePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ValidOperatingSystemBuildRanges')) { $parameters.ValidOperatingSystemBuildRanges = $parameters.ValidOperatingSystemBuildRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphOperatingSystemVersionRange' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceCompliancePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationAdministrativeTemplatePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationAdministrativeTemplatePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10-{0}' -f $DeviceConfigurationAdministrativeTemplatePolicyWindows10.DisplayName $parameters = $DeviceConfigurationAdministrativeTemplatePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DefinitionValues')) { $parameters.DefinitionValues = $parameters.DefinitionValues | ForEach-Object { if ($_.ContainsKey('Definition')) { $_.Definition = $_.Definition | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneGroupPolicyDefinitionValueDefinition' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('PresentationValues')) { $_.PresentationValues = $_.PresentationValues | ForEach-Object { if ($_.ContainsKey('KeyValuePairValues')) { $_.KeyValuePairValues = $_.KeyValuePairValues | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneGroupPolicyDefinitionValuePresentationValueKeyValuePair' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneGroupPolicyDefinitionValuePresentationValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneGroupPolicyDefinitionValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationCustomPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationCustomPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationCustomPolicyWindows10-{0}' -f $DeviceConfigurationCustomPolicyWindows10.DisplayName $parameters = $DeviceConfigurationCustomPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('OmaSettings')) { $parameters.OmaSettings = $parameters.OmaSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphomaSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationCustomPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationDefenderForEndpointOnboardingPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10-{0}' -f $DeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10.DisplayName $parameters = $DeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationDeliveryOptimizationPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationDeliveryOptimizationPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationDeliveryOptimizationPolicyWindows10-{0}' -f $DeviceConfigurationDeliveryOptimizationPolicyWindows10.DisplayName $parameters = $DeviceConfigurationDeliveryOptimizationPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('BandwidthMode')) { $parameters.BandwidthMode = $parameters.BandwidthMode | ForEach-Object { if ($_.ContainsKey('BandwidthBackgroundPercentageHours')) { $_.BandwidthBackgroundPercentageHours = $_.BandwidthBackgroundPercentageHours | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeliveryOptimizationBandwidthBusinessHoursLimit' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('BandwidthForegroundPercentageHours')) { $_.BandwidthForegroundPercentageHours = $_.BandwidthForegroundPercentageHours | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeliveryOptimizationBandwidthBusinessHoursLimit' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeliveryOptimizationBandwidth' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('GroupIdSource')) { $parameters.GroupIdSource = $parameters.GroupIdSource | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeliveryOptimizationGroupIdSource' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MaximumCacheSize')) { $parameters.MaximumCacheSize = $parameters.MaximumCacheSize | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeliveryOptimizationMaxCacheSize' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationDeliveryOptimizationPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationDomainJoinPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationDomainJoinPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationDomainJoinPolicyWindows10-{0}' -f $DeviceConfigurationDomainJoinPolicyWindows10.DisplayName $parameters = $DeviceConfigurationDomainJoinPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationDomainJoinPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationEmailProfilePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationEmailProfilePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationEmailProfilePolicyWindows10-{0}' -f $DeviceConfigurationEmailProfilePolicyWindows10.DisplayName $parameters = $DeviceConfigurationEmailProfilePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationEmailProfilePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationEndpointProtectionPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationEndpointProtectionPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationEndpointProtectionPolicyWindows10-{0}' -f $DeviceConfigurationEndpointProtectionPolicyWindows10.DisplayName $parameters = $DeviceConfigurationEndpointProtectionPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('BitLockerFixedDrivePolicy')) { $parameters.BitLockerFixedDrivePolicy = $parameters.BitLockerFixedDrivePolicy | ForEach-Object { if ($_.ContainsKey('RecoveryOptions')) { $_.RecoveryOptions = $_.RecoveryOptions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphBitLockerRecoveryOptions' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphbitLockerFixedDrivePolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('BitLockerRemovableDrivePolicy')) { $parameters.BitLockerRemovableDrivePolicy = $parameters.BitLockerRemovableDrivePolicy | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphbitLockerRemovableDrivePolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('BitLockerSystemDrivePolicy')) { $parameters.BitLockerSystemDrivePolicy = $parameters.BitLockerSystemDrivePolicy | ForEach-Object { if ($_.ContainsKey('RecoveryOptions')) { $_.RecoveryOptions = $_.RecoveryOptions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphBitLockerRecoveryOptions' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphbitLockerSystemDrivePolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('DefenderDetectedMalwareActions')) { $parameters.DefenderDetectedMalwareActions = $parameters.DefenderDetectedMalwareActions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdefenderDetectedMalwareActions' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('FirewallProfileDomain')) { $parameters.FirewallProfileDomain = $parameters.FirewallProfileDomain | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsFirewallNetworkProfile' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('FirewallProfilePrivate')) { $parameters.FirewallProfilePrivate = $parameters.FirewallProfilePrivate | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsFirewallNetworkProfile' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('FirewallProfilePublic')) { $parameters.FirewallProfilePublic = $parameters.FirewallProfilePublic | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsFirewallNetworkProfile' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('FirewallRules')) { $parameters.FirewallRules = $parameters.FirewallRules | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsFirewallRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsAccessCredentialManagerAsTrustedCaller')) { $parameters.UserRightsAccessCredentialManagerAsTrustedCaller = $parameters.UserRightsAccessCredentialManagerAsTrustedCaller | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsActAsPartOfTheOperatingSystem')) { $parameters.UserRightsActAsPartOfTheOperatingSystem = $parameters.UserRightsActAsPartOfTheOperatingSystem | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsAllowAccessFromNetwork')) { $parameters.UserRightsAllowAccessFromNetwork = $parameters.UserRightsAllowAccessFromNetwork | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsBackupData')) { $parameters.UserRightsBackupData = $parameters.UserRightsBackupData | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsBlockAccessFromNetwork')) { $parameters.UserRightsBlockAccessFromNetwork = $parameters.UserRightsBlockAccessFromNetwork | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsChangeSystemTime')) { $parameters.UserRightsChangeSystemTime = $parameters.UserRightsChangeSystemTime | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsCreateGlobalObjects')) { $parameters.UserRightsCreateGlobalObjects = $parameters.UserRightsCreateGlobalObjects | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsCreatePageFile')) { $parameters.UserRightsCreatePageFile = $parameters.UserRightsCreatePageFile | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsCreatePermanentSharedObjects')) { $parameters.UserRightsCreatePermanentSharedObjects = $parameters.UserRightsCreatePermanentSharedObjects | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsCreateSymbolicLinks')) { $parameters.UserRightsCreateSymbolicLinks = $parameters.UserRightsCreateSymbolicLinks | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsCreateToken')) { $parameters.UserRightsCreateToken = $parameters.UserRightsCreateToken | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsDebugPrograms')) { $parameters.UserRightsDebugPrograms = $parameters.UserRightsDebugPrograms | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsDelegation')) { $parameters.UserRightsDelegation = $parameters.UserRightsDelegation | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsDenyLocalLogOn')) { $parameters.UserRightsDenyLocalLogOn = $parameters.UserRightsDenyLocalLogOn | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsGenerateSecurityAudits')) { $parameters.UserRightsGenerateSecurityAudits = $parameters.UserRightsGenerateSecurityAudits | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsImpersonateClient')) { $parameters.UserRightsImpersonateClient = $parameters.UserRightsImpersonateClient | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsIncreaseSchedulingPriority')) { $parameters.UserRightsIncreaseSchedulingPriority = $parameters.UserRightsIncreaseSchedulingPriority | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsLoadUnloadDrivers')) { $parameters.UserRightsLoadUnloadDrivers = $parameters.UserRightsLoadUnloadDrivers | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsLocalLogOn')) { $parameters.UserRightsLocalLogOn = $parameters.UserRightsLocalLogOn | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsLockMemory')) { $parameters.UserRightsLockMemory = $parameters.UserRightsLockMemory | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsManageAuditingAndSecurityLogs')) { $parameters.UserRightsManageAuditingAndSecurityLogs = $parameters.UserRightsManageAuditingAndSecurityLogs | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsManageVolumes')) { $parameters.UserRightsManageVolumes = $parameters.UserRightsManageVolumes | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsModifyFirmwareEnvironment')) { $parameters.UserRightsModifyFirmwareEnvironment = $parameters.UserRightsModifyFirmwareEnvironment | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsModifyObjectLabels')) { $parameters.UserRightsModifyObjectLabels = $parameters.UserRightsModifyObjectLabels | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsProfileSingleProcess')) { $parameters.UserRightsProfileSingleProcess = $parameters.UserRightsProfileSingleProcess | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsRemoteDesktopServicesLogOn')) { $parameters.UserRightsRemoteDesktopServicesLogOn = $parameters.UserRightsRemoteDesktopServicesLogOn | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsRemoteShutdown')) { $parameters.UserRightsRemoteShutdown = $parameters.UserRightsRemoteShutdown | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsRestoreData')) { $parameters.UserRightsRestoreData = $parameters.UserRightsRestoreData | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserRightsTakeOwnership')) { $parameters.UserRightsTakeOwnership = $parameters.UserRightsTakeOwnership | ForEach-Object { if ($_.ContainsKey('LocalUsersOrGroups')) { $_.LocalUsersOrGroups = $_.LocalUsersOrGroups | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementUserRightsLocalUserOrGroup' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementUserRightsSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationEndpointProtectionPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationFirmwareInterfacePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationFirmwareInterfacePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationFirmwareInterfacePolicyWindows10-{0}' -f $DeviceConfigurationFirmwareInterfacePolicyWindows10.DisplayName $parameters = $DeviceConfigurationFirmwareInterfacePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationFirmwareInterfacePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationHealthMonitoringConfigurationPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationHealthMonitoringConfigurationPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationHealthMonitoringConfigurationPolicyWindows10-{0}' -f $DeviceConfigurationHealthMonitoringConfigurationPolicyWindows10.DisplayName $parameters = $DeviceConfigurationHealthMonitoringConfigurationPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationHealthMonitoringConfigurationPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationIdentityProtectionPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationIdentityProtectionPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationIdentityProtectionPolicyWindows10-{0}' -f $DeviceConfigurationIdentityProtectionPolicyWindows10.DisplayName $parameters = $DeviceConfigurationIdentityProtectionPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationIdentityProtectionPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationImportedPfxCertificatePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationImportedPfxCertificatePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationImportedPfxCertificatePolicyWindows10-{0}' -f $DeviceConfigurationImportedPfxCertificatePolicyWindows10.DisplayName $parameters = $DeviceConfigurationImportedPfxCertificatePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationImportedPfxCertificatePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationKioskPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationKioskPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationKioskPolicyWindows10-{0}' -f $DeviceConfigurationKioskPolicyWindows10.DisplayName $parameters = $DeviceConfigurationKioskPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('KioskProfiles')) { $parameters.KioskProfiles = $parameters.KioskProfiles | ForEach-Object { if ($_.ContainsKey('AppConfiguration')) { $_.AppConfiguration = $_.AppConfiguration | ForEach-Object { if ($_.ContainsKey('Apps')) { $_.Apps = $_.Apps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphWindowsKioskAppBase' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UwpApp')) { $_.UwpApp = $_.UwpApp | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphWindowsKioskUWPApp' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Win32App')) { $_.Win32App = $_.Win32App | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphWindowsKioskWin32App' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphWindowsKioskAppConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UserAccountsConfiguration')) { $_.UserAccountsConfiguration = $_.UserAccountsConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphWindowsKioskUser' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsKioskProfile' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('WindowsKioskForceUpdateSchedule')) { $parameters.WindowsKioskForceUpdateSchedule = $parameters.WindowsKioskForceUpdateSchedule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsKioskForceUpdateSchedule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationKioskPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationNetworkBoundaryPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationNetworkBoundaryPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationNetworkBoundaryPolicyWindows10-{0}' -f $DeviceConfigurationNetworkBoundaryPolicyWindows10.DisplayName $parameters = $DeviceConfigurationNetworkBoundaryPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('WindowsNetworkIsolationPolicy')) { $parameters.WindowsNetworkIsolationPolicy = $parameters.WindowsNetworkIsolationPolicy | ForEach-Object { if ($_.ContainsKey('EnterpriseCloudResources')) { $_.EnterpriseCloudResources = $_.EnterpriseCloudResources | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphProxiedDomain1' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('EnterpriseIPRanges')) { $_.EnterpriseIPRanges = $_.EnterpriseIPRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIpRange1' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsNetworkIsolationPolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationNetworkBoundaryPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPkcsCertificatePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPkcsCertificatePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationPkcsCertificatePolicyWindows10-{0}' -f $DeviceConfigurationPkcsCertificatePolicyWindows10.DisplayName $parameters = $DeviceConfigurationPkcsCertificatePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('CustomSubjectAlternativeNames')) { $parameters.CustomSubjectAlternativeNames = $parameters.CustomSubjectAlternativeNames | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphcustomSubjectAlternativeName' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExtendedKeyUsages')) { $parameters.ExtendedKeyUsages = $parameters.ExtendedKeyUsages | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphextendedKeyUsage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPkcsCertificatePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPlatformScriptMacOS in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPlatformScriptMacOSs) { $resourceTitle = 'IntuneDeviceConfigurationPlatformScriptMacOS-{0}' -f $DeviceConfigurationPlatformScriptMacOS.Id $parameters = $DeviceConfigurationPlatformScriptMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPlatformScriptMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPlatformScriptWindows in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPlatformScriptWindowss) { $resourceTitle = 'IntuneDeviceConfigurationPlatformScriptWindows-{0}' -f $DeviceConfigurationPlatformScriptWindows.Id $parameters = $DeviceConfigurationPlatformScriptWindows $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPlatformScriptWindows' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyAndroidDeviceAdministrator in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesAndroidDeviceAdministrator) { $resourceTitle = 'IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator-{0}' -f $DeviceConfigurationPolicyAndroidDeviceAdministrator.DisplayName $parameters = $DeviceConfigurationPolicyAndroidDeviceAdministrator $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AppsHideList')) { $parameters.AppsHideList = $parameters.AppsHideList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AppsInstallAllowList')) { $parameters.AppsInstallAllowList = $parameters.AppsInstallAllowList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AppsLaunchBlockList')) { $parameters.AppsLaunchBlockList = $parameters.AppsLaunchBlockList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CompliantAppsList')) { $parameters.CompliantAppsList = $parameters.CompliantAppsList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KioskModeApps')) { $parameters.KioskModeApps = $parameters.KioskModeApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyAndroidDeviceOwner in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesAndroidDeviceOwner) { $resourceTitle = 'IntuneDeviceConfigurationPolicyAndroidDeviceOwner-{0}' -f $DeviceConfigurationPolicyAndroidDeviceOwner.DisplayName $parameters = $DeviceConfigurationPolicyAndroidDeviceOwner $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AzureAdSharedDeviceDataClearApps')) { $parameters.AzureAdSharedDeviceDataClearApps = $parameters.AzureAdSharedDeviceDataClearApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('DetailedHelpText')) { $parameters.DetailedHelpText = $parameters.DetailedHelpText | ForEach-Object { if ($_.ContainsKey('localizedMessages')) { $_.localizedMessages = $_.localizedMessages | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphkeyvaluepair' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceowneruserfacingmessage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('DeviceOwnerLockScreenMessage')) { $parameters.DeviceOwnerLockScreenMessage = $parameters.DeviceOwnerLockScreenMessage | ForEach-Object { if ($_.ContainsKey('localizedMessages')) { $_.localizedMessages = $_.localizedMessages | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphkeyvaluepair' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceowneruserfacingmessage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('GlobalProxy')) { $parameters.GlobalProxy = $parameters.GlobalProxy | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerglobalproxy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KioskModeAppPositions')) { $parameters.KioskModeAppPositions = $parameters.KioskModeAppPositions | ForEach-Object { if ($_.ContainsKey('item')) { $_.item = $_.item | ForEach-Object { if ($_.ContainsKey('items')) { $_.items = $_.items | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerkioskmodefolderitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerkioskmodehomescreenitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerkioskmodeapppositionitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KioskModeApps')) { $parameters.KioskModeApps = $parameters.KioskModeApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('KioskModeManagedFolders')) { $parameters.KioskModeManagedFolders = $parameters.KioskModeManagedFolders | ForEach-Object { if ($_.ContainsKey('items')) { $_.items = $_.items | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerkioskmodefolderitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownerkioskmodemanagedfolder' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('PersonalProfilePersonalApplications')) { $parameters.PersonalProfilePersonalApplications = $parameters.PersonalProfilePersonalApplications | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ShortHelpText')) { $parameters.ShortHelpText = $parameters.ShortHelpText | ForEach-Object { if ($_.ContainsKey('localizedMessages')) { $_.localizedMessages = $_.localizedMessages | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphkeyvaluepair' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceowneruserfacingmessage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('SystemUpdateFreezePeriods')) { $parameters.SystemUpdateFreezePeriods = $parameters.SystemUpdateFreezePeriods | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphandroiddeviceownersystemupdatefreezeperiod' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyAndroidDeviceOwner' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyAndroidOpenSourceProject in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesAndroidOpenSourceProject) { $resourceTitle = 'IntuneDeviceConfigurationPolicyAndroidOpenSourceProject-{0}' -f $DeviceConfigurationPolicyAndroidOpenSourceProject.DisplayName $parameters = $DeviceConfigurationPolicyAndroidOpenSourceProject $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyAndroidOpenSourceProject' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyAndroidWorkProfile in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesAndroidWorkProfile) { $resourceTitle = 'IntuneDeviceConfigurationPolicyAndroidWorkProfile-{0}' -f $DeviceConfigurationPolicyAndroidWorkProfile.DisplayName $parameters = $DeviceConfigurationPolicyAndroidWorkProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyAndroidWorkProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyiOS in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesiOS) { $resourceTitle = 'IntuneDeviceConfigurationPolicyiOS-{0}' -f $DeviceConfigurationPolicyiOS.DisplayName $parameters = $DeviceConfigurationPolicyiOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AppsSingleAppModeList')) { $parameters.AppsSingleAppModeList = $parameters.AppsSingleAppModeList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AppsVisibilityList')) { $parameters.AppsVisibilityList = $parameters.AppsVisibilityList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CompliantAppsList')) { $parameters.CompliantAppsList = $parameters.CompliantAppsList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingAustralia')) { $parameters.MediaContentRatingAustralia = $parameters.MediaContentRatingAustralia | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingaustralia' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingCanada')) { $parameters.MediaContentRatingCanada = $parameters.MediaContentRatingCanada | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingcanada' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingFrance')) { $parameters.MediaContentRatingFrance = $parameters.MediaContentRatingFrance | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingfrance' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingGermany')) { $parameters.MediaContentRatingGermany = $parameters.MediaContentRatingGermany | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratinggermany' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingIreland')) { $parameters.MediaContentRatingIreland = $parameters.MediaContentRatingIreland | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingireland' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingJapan')) { $parameters.MediaContentRatingJapan = $parameters.MediaContentRatingJapan | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingjapan' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingNewZealand')) { $parameters.MediaContentRatingNewZealand = $parameters.MediaContentRatingNewZealand | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingnewzealand' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingUnitedKingdom')) { $parameters.MediaContentRatingUnitedKingdom = $parameters.MediaContentRatingUnitedKingdom | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingunitedkingdom' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MediaContentRatingUnitedStates')) { $parameters.MediaContentRatingUnitedStates = $parameters.MediaContentRatingUnitedStates | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmediacontentratingunitedstates' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('NetworkUsageRules')) { $parameters.NetworkUsageRules = $parameters.NetworkUsageRules | ForEach-Object { if ($_.ContainsKey('managedApps')) { $_.managedApps = $_.managedApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphiosnetworkusagerule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyiOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyMacOS in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesMacOS) { $resourceTitle = 'IntuneDeviceConfigurationPolicyMacOS-{0}' -f $DeviceConfigurationPolicyMacOS.DisplayName $parameters = $DeviceConfigurationPolicyMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('CompliantAppsList')) { $parameters.CompliantAppsList = $parameters.CompliantAppsList | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphapplistitemMacOS' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('PrivacyAccessControls')) { $parameters.PrivacyAccessControls = $parameters.PrivacyAccessControls | ForEach-Object { if ($_.ContainsKey('appleEventsAllowedReceivers')) { $_.appleEventsAllowedReceivers = $_.appleEventsAllowedReceivers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmacosappleeventreceiver' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphmacosprivacyaccesscontrolitem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationPolicyWindows10-{0}' -f $DeviceConfigurationPolicyWindows10.DisplayName $parameters = $DeviceConfigurationPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DefenderDetectedMalwareActions')) { $parameters.DefenderDetectedMalwareActions = $parameters.DefenderDetectedMalwareActions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdefenderDetectedMalwareActions1' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EdgeHomeButtonConfiguration')) { $parameters.EdgeHomeButtonConfiguration = $parameters.EdgeHomeButtonConfiguration | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphedgeHomeButtonConfiguration' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EdgeSearchEngine')) { $parameters.EdgeSearchEngine = $parameters.EdgeSearchEngine | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphedgeSearchEngineBase' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('NetworkProxyServer')) { $parameters.NetworkProxyServer = $parameters.NetworkProxyServer | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindows10NetworkProxyServer' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Windows10AppsForceUpdateSchedule')) { $parameters.Windows10AppsForceUpdateSchedule = $parameters.Windows10AppsForceUpdateSchedule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindows10AppsForceUpdateSchedule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationSCEPCertificatePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationSCEPCertificatePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationSCEPCertificatePolicyWindows10-{0}' -f $DeviceConfigurationSCEPCertificatePolicyWindows10.DisplayName $parameters = $DeviceConfigurationSCEPCertificatePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('CustomSubjectAlternativeNames')) { $parameters.CustomSubjectAlternativeNames = $parameters.CustomSubjectAlternativeNames | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphcustomSubjectAlternativeName' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExtendedKeyUsages')) { $parameters.ExtendedKeyUsages = $parameters.ExtendedKeyUsages | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphextendedKeyUsage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationSCEPCertificatePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationSecureAssessmentPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationSecureAssessmentPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationSecureAssessmentPolicyWindows10-{0}' -f $DeviceConfigurationSecureAssessmentPolicyWindows10.DisplayName $parameters = $DeviceConfigurationSecureAssessmentPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationSecureAssessmentPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationSharedMultiDevicePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationSharedMultiDevicePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10-{0}' -f $DeviceConfigurationSharedMultiDevicePolicyWindows10.DisplayName $parameters = $DeviceConfigurationSharedMultiDevicePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AccountManagerPolicy')) { $parameters.AccountManagerPolicy = $parameters.AccountManagerPolicy | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphsharedPCAccountManagerPolicy' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationTrustedCertificatePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationTrustedCertificatePoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationTrustedCertificatePolicyWindows10-{0}' -f $DeviceConfigurationTrustedCertificatePolicyWindows10.DisplayName $parameters = $DeviceConfigurationTrustedCertificatePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationTrustedCertificatePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationVpnPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationVpnPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationVpnPolicyWindows10-{0}' -f $DeviceConfigurationVpnPolicyWindows10.DisplayName $parameters = $DeviceConfigurationVpnPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AssociatedApps')) { $parameters.AssociatedApps = $parameters.AssociatedApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindows10AssociatedApps' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('CryptographySuite')) { $parameters.CryptographySuite = $parameters.CryptographySuite | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphcryptographySuite' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('DnsRules')) { $parameters.DnsRules = $parameters.DnsRules | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphvpnDnsRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ProxyServer')) { $parameters.ProxyServer = $parameters.ProxyServer | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindows10VpnProxyServer' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Routes')) { $parameters.Routes = $parameters.Routes | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphvpnRoute' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('SingleSignOnEku')) { $parameters.SingleSignOnEku = $parameters.SingleSignOnEku | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphextendedKeyUsage' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('TrafficRules')) { $parameters.TrafficRules = $parameters.TrafficRules | ForEach-Object { if ($_.ContainsKey('LocalAddressRanges')) { $_.LocalAddressRanges = $_.LocalAddressRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIPv4Range' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('LocalPortRanges')) { $_.LocalPortRanges = $_.LocalPortRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphNumberRange' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('RemoteAddressRanges')) { $_.RemoteAddressRanges = $_.RemoteAddressRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIPv4Range' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('RemotePortRanges')) { $_.RemotePortRanges = $_.RemotePortRanges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphNumberRange' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphvpnTrafficRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ServerCollection')) { $parameters.ServerCollection = $parameters.ServerCollection | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphvpnServer' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationVpnPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationWindowsTeamPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationWindowsTeamPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationWindowsTeamPolicyWindows10-{0}' -f $DeviceConfigurationWindowsTeamPolicyWindows10.DisplayName $parameters = $DeviceConfigurationWindowsTeamPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationWindowsTeamPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceConfigurationWiredNetworkPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceConfigurationWiredNetworkPoliciesWindows10) { $resourceTitle = 'IntuneDeviceConfigurationWiredNetworkPolicyWindows10-{0}' -f $DeviceConfigurationWiredNetworkPolicyWindows10.DisplayName $parameters = $DeviceConfigurationWiredNetworkPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceConfigurationWiredNetworkPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceControlPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceControlPoliciesWindows10) { $resourceTitle = 'IntuneDeviceControlPolicyWindows10-{0}' -f $DeviceControlPolicyWindows10.DisplayName $parameters = $DeviceControlPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('PolicyRule')) { $parameters.PolicyRule = $parameters.PolicyRule | ForEach-Object { if ($_.ContainsKey('Entry')) { $_.Entry = $_.Entry | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogPolicyRuleEntry' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogPolicyRule' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceControlPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceEnrollmentLimitRestriction in $ConfigurationData.NonNodeData.Intune.DeviceEnrollmentLimitRestrictions) { $resourceTitle = 'IntuneDeviceEnrollmentLimitRestriction-{0}' -f $DeviceEnrollmentLimitRestriction.DisplayName $parameters = $DeviceEnrollmentLimitRestriction $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceEnrollmentLimitRestriction' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceEnrollmentPlatformRestriction in $ConfigurationData.NonNodeData.Intune.DeviceEnrollmentPlatformRestrictions) { $resourceTitle = 'IntuneDeviceEnrollmentPlatformRestriction-{0}-{1}' -f $DeviceEnrollmentPlatformRestriction.Identity,$DeviceEnrollmentPlatformRestriction.DisplayName $parameters = $DeviceEnrollmentPlatformRestriction $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('AndroidForWorkRestriction')) { $parameters.AndroidForWorkRestriction = $parameters.AndroidForWorkRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('AndroidRestriction')) { $parameters.AndroidRestriction = $parameters.AndroidRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('IosRestriction')) { $parameters.IosRestriction = $parameters.IosRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MacOSRestriction')) { $parameters.MacOSRestriction = $parameters.MacOSRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MacRestriction')) { $parameters.MacRestriction = $parameters.MacRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('WindowsHomeSkuRestriction')) { $parameters.WindowsHomeSkuRestriction = $parameters.WindowsHomeSkuRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('WindowsMobileRestriction')) { $parameters.WindowsMobileRestriction = $parameters.WindowsMobileRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('WindowsRestriction')) { $parameters.WindowsRestriction = $parameters.WindowsRestriction | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceEnrollmentPlatformRestriction' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceEnrollmentPlatformRestriction' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceEnrollmentStatusPageWindows10 in $ConfigurationData.NonNodeData.Intune.DeviceEnrollmentStatusPageWindows10s) { $resourceTitle = 'IntuneDeviceEnrollmentStatusPageWindows10-{0}' -f $DeviceEnrollmentStatusPageWindows10.DisplayName $parameters = $DeviceEnrollmentStatusPageWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceEnrollmentStatusPageWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } if ($ConfigurationData.NonNodeData.Intune.ContainsKey('DeviceManagementComplianceSettings')) { $resourceTitle = 'DeviceManagementComplianceSettingsDefaults' $parameters = $ConfigurationData.NonNodeData.Intune.DeviceManagementComplianceSettings $parameters.IsSingleInstance = 'Yes' $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceManagementComplianceSettings' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceManagementEnrollmentAndroidGooglePlay in $ConfigurationData.NonNodeData.Intune.DeviceManagementEnrollmentAndroidGooglePlaies) { $resourceTitle = 'IntuneDeviceManagementEnrollmentAndroidGooglePlay-{0}' -f $DeviceManagementEnrollmentAndroidGooglePlay.Id $parameters = $DeviceManagementEnrollmentAndroidGooglePlay $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceManagementEnrollmentAndroidGooglePlay' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceManagmentAndroidDeviceOwnerEnrollmentProfile in $ConfigurationData.NonNodeData.Intune.DeviceManagmentAndroidDeviceOwnerEnrollmentProfiles) { $resourceTitle = 'IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile-{0}' -f $DeviceManagmentAndroidDeviceOwnerEnrollmentProfile.DisplayName $parameters = $DeviceManagmentAndroidDeviceOwnerEnrollmentProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneDeviceManagmentAndroidDeviceOwnerEnrollmentProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DeviceRemediation in $ConfigurationData.NonNodeData.Intune.DeviceRemediations) { $resourceTitle = 'IntuneDeviceRemediation-{0}' -f $DeviceRemediation.Id $parameters = $DeviceRemediation $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DetectionScriptParameters')) { $parameters.DetectionScriptParameters = $parameters.DetectionScriptParameters | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceHealthScriptParameter' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('RemediationScriptParameters')) { $parameters.RemediationScriptParameters = $parameters.RemediationScriptParameters | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceHealthScriptParameter' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('RunSchedule')) { $_.RunSchedule = $_.RunSchedule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneDeviceRemediationRunSchedule' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Assignment')) { $_.Assignment = $_.Assignment | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneDeviceRemediationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDeviceRemediation' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DiskEncryptionMacOS in $ConfigurationData.NonNodeData.Intune.DiskEncryptionMacOSs) { $resourceTitle = 'IntuneDiskEncryptionMacOS-{0}' -f $DiskEncryptionMacOS.DisplayName $parameters = $DiskEncryptionMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDiskEncryptionMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($DiskEncryptionWindows10 in $ConfigurationData.NonNodeData.Intune.DiskEncryptionWindows10s) { $resourceTitle = 'IntuneDiskEncryptionWindows10-{0}' -f $DiskEncryptionWindows10.DisplayName $parameters = $DiskEncryptionWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneDiskEncryptionWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EndpointDetectionAndResponsePolicyLinux in $ConfigurationData.NonNodeData.Intune.EndpointDetectionAndResponsePoliciesLinux) { $resourceTitle = 'IntuneEndpointDetectionAndResponsePolicyLinux-{0}' -f $EndpointDetectionAndResponsePolicyLinux.DisplayName $parameters = $EndpointDetectionAndResponsePolicyLinux $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneEndpointDetectionAndResponsePolicyLinux' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EndpointDetectionAndResponsePolicyMacOS in $ConfigurationData.NonNodeData.Intune.EndpointDetectionAndResponsePoliciesMacOS) { $resourceTitle = 'IntuneEndpointDetectionAndResponsePolicyMacOS-{0}' -f $EndpointDetectionAndResponsePolicyMacOS.DisplayName $parameters = $EndpointDetectionAndResponsePolicyMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneEndpointDetectionAndResponsePolicyMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($EndpointDetectionAndResponsePolicyWindows10 in $ConfigurationData.NonNodeData.Intune.EndpointDetectionAndResponsePoliciesWindows10) { $resourceTitle = 'IntuneEndpointDetectionAndResponsePolicyWindows10-{0}' -f $EndpointDetectionAndResponsePolicyWindows10.DisplayName $parameters = $EndpointDetectionAndResponsePolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneEndpointDetectionAndResponsePolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($ExploitProtectionPolicyWindows10SettingCatalog in $ConfigurationData.NonNodeData.Intune.ExploitProtectionPoliciesWindows10SettingCatalog) { $resourceTitle = 'IntuneExploitProtectionPolicyWindows10SettingCatalog-{0}' -f $ExploitProtectionPolicyWindows10SettingCatalog.DisplayName $parameters = $ExploitProtectionPolicyWindows10SettingCatalog $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneExploitProtectionPolicyWindows10SettingCatalog' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($FirewallPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.FirewallPoliciesWindows10) { $resourceTitle = 'IntuneFirewallPolicyWindows10-{0}' -f $FirewallPolicyWindows10.DisplayName $parameters = $FirewallPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneFirewallPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($MobileAppsMacOSLobApp in $ConfigurationData.NonNodeData.Intune.MobileAppsMacOSLobApps) { $resourceTitle = 'IntuneMobileAppsMacOSLobApp-{0}' -f $MobileAppsMacOSLobApp.DisplayName $parameters = $MobileAppsMacOSLobApp $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('LargeIcon')) { $parameters.LargeIcon = $parameters.LargeIcon | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMimeContent' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('MinimumSupportedOperatingSystem')) { $parameters.MinimumSupportedOperatingSystem = $parameters.MinimumSupportedOperatingSystem | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMinimumOperatingSystem' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Categories')) { $parameters.Categories = $parameters.Categories | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppCategory' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppAssignment' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ChildApps')) { $parameters.ChildApps = $parameters.ChildApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppChildApp' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneMobileAppsMacOSLobApp' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($MobileAppsWindowsOfficeSuiteApp in $ConfigurationData.NonNodeData.Intune.MobileAppsWindowsOfficeSuiteApps) { $resourceTitle = 'IntuneMobileAppsWindowsOfficeSuiteApp-{0}' -f $MobileAppsWindowsOfficeSuiteApp.DisplayName $parameters = $MobileAppsWindowsOfficeSuiteApp $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Categories')) { $parameters.Categories = $parameters.Categories | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppCategory' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppAssignment' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExcludedApps')) { $parameters.ExcludedApps = $parameters.ExcludedApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementMobileAppExcludedApp' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneMobileAppsWindowsOfficeSuiteApp' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($MobileThreatDefenseConnector in $ConfigurationData.NonNodeData.Intune.MobileThreatDefenseConnectors) { $resourceTitle = 'IntuneMobileThreatDefenseConnector-{0}' -f $MobileThreatDefenseConnector.Id $parameters = $MobileThreatDefenseConnector $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneMobileThreatDefenseConnector' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($PolicySets in $ConfigurationData.NonNodeData.Intune.PoliciesSets) { $resourceTitle = 'IntunePolicySets-{0}' -f $PolicySets.DisplayName $parameters = $PolicySets $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Items')) { $parameters.Items = $parameters.Items | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyItems' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntunePolicySets' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleAssignment in $ConfigurationData.NonNodeData.Intune.RoleAssignments) { $resourceTitle = 'IntuneRoleAssignment-{0}' -f $RoleAssignment.DisplayName $parameters = $RoleAssignment $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneRoleAssignment' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($RoleDefinition in $ConfigurationData.NonNodeData.Intune.RoleDefinitions) { $resourceTitle = 'IntuneRoleDefinition-{0}' -f $RoleDefinition.DisplayName $parameters = $RoleDefinition $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'IntuneRoleDefinition' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SecurityBaselineDefenderForEndpoint in $ConfigurationData.NonNodeData.Intune.SecurityBaselineDefenderForEndpoints) { $resourceTitle = 'IntuneSecurityBaselineDefenderForEndpoint-{0}' -f $SecurityBaselineDefenderForEndpoint.DisplayName $parameters = $SecurityBaselineDefenderForEndpoint $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DeviceSettings')) { $parameters.DeviceSettings = $parameters.DeviceSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogDeviceSettings_IntuneSecurityBaselineDefenderForEndpoint' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserSettings')) { $parameters.UserSettings = $parameters.UserSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogUserSettings_IntuneSecurityBaselineDefenderForEndpoint' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneSecurityBaselineDefenderForEndpoint' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SecurityBaselineMicrosoft365AppsForEnterprise in $ConfigurationData.NonNodeData.Intune.SecurityBaselineMicrosoft365AppsForEnterprises) { $resourceTitle = 'IntuneSecurityBaselineMicrosoft365AppsForEnterprise-{0}' -f $SecurityBaselineMicrosoft365AppsForEnterprise.DisplayName $parameters = $SecurityBaselineMicrosoft365AppsForEnterprise $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DeviceSettings')) { $parameters.DeviceSettings = $parameters.DeviceSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogDeviceSettings_IntuneSecurityBaselineMicrosoft365AppsForEnterprise' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('UserSettings')) { $parameters.UserSettings = $parameters.UserSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIntuneSettingsCatalogUserSettings_IntuneSecurityBaselineMicrosoft365AppsForEnterprise' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneSecurityBaselineMicrosoft365AppsForEnterprise' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SecurityBaselineMicrosoftEdge in $ConfigurationData.NonNodeData.Intune.SecurityBaselineMicrosoftEdges) { $resourceTitle = 'IntuneSecurityBaselineMicrosoftEdge-{0}' -f $SecurityBaselineMicrosoftEdge.DisplayName $parameters = $SecurityBaselineMicrosoftEdge $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneSecurityBaselineMicrosoftEdge' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SettingCatalogASRRulesPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.SettingCatalogASRRulesPoliciesWindows10) { $resourceTitle = 'IntuneSettingCatalogASRRulesPolicyWindows10-{0}' -f $SettingCatalogASRRulesPolicyWindows10.DisplayName $parameters = $SettingCatalogASRRulesPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneSettingCatalogASRRulesPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($SettingCatalogCustomPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.SettingCatalogCustomPoliciesWindows10) { $resourceTitle = 'IntuneSettingCatalogCustomPolicyWindows10-{0}' -f $SettingCatalogCustomPolicyWindows10.Name $parameters = $SettingCatalogCustomPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('TemplateReference')) { $parameters.TemplateReference = $parameters.TemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementConfigurationPolicyTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Settings')) { $parameters.Settings = $parameters.Settings | ForEach-Object { if ($_.ContainsKey('SettingInstance')) { $_.SettingInstance = $_.SettingInstance | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('SettingInstanceTemplateReference')) { $_.SettingInstanceTemplateReference = $_.SettingInstanceTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstanceTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingCollectionValue')) { $_.ChoiceSettingCollectionValue = $_.ChoiceSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('ChoiceSettingValue')) { $_.ChoiceSettingValue = $_.ChoiceSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationChoiceSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingCollectionValue')) { $_.GroupSettingCollectionValue = $_.GroupSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('GroupSettingValue')) { $_.GroupSettingValue = $_.GroupSettingValue | ForEach-Object { if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationGroupSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingCollectionValue')) { $_.SimpleSettingCollectionValue = $_.SimpleSettingCollectionValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('SimpleSettingValue')) { $_.SimpleSettingValue = $_.SimpleSettingValue | ForEach-Object { if ($_.ContainsKey('SettingValueTemplateReference')) { $_.SettingValueTemplateReference = $_.SettingValueTemplateReference | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingValueTemplateReference' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('Children')) { $_.Children = $_.Children | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSimpleSettingValue' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphDeviceManagementConfigurationSettingInstance' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphdeviceManagementConfigurationSetting' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneSettingCatalogCustomPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyAndroidDeviceAdministrator in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesAndroidDeviceAdministrator) { $resourceTitle = 'IntuneWifiConfigurationPolicyAndroidDeviceAdministrator-{0}' -f $WifiConfigurationPolicyAndroidDeviceAdministrator.DisplayName $parameters = $WifiConfigurationPolicyAndroidDeviceAdministrator $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyAndroidDeviceAdministrator' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyAndroidEnterpriseDeviceOwner in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesAndroidEnterpriseDeviceOwner) { $resourceTitle = 'IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner-{0}' -f $WifiConfigurationPolicyAndroidEnterpriseDeviceOwner.DisplayName $parameters = $WifiConfigurationPolicyAndroidEnterpriseDeviceOwner $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyAndroidEnterpriseWorkProfile in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesAndroidEnterpriseWorkProfile) { $resourceTitle = 'IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile-{0}' -f $WifiConfigurationPolicyAndroidEnterpriseWorkProfile.DisplayName $parameters = $WifiConfigurationPolicyAndroidEnterpriseWorkProfile $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyAndroidForWork in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesAndroidForWork) { $resourceTitle = 'IntuneWifiConfigurationPolicyAndroidForWork-{0}' -f $WifiConfigurationPolicyAndroidForWork.DisplayName $parameters = $WifiConfigurationPolicyAndroidForWork $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyAndroidForWork' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyAndroidOpenSourceProject in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesAndroidOpenSourceProject) { $resourceTitle = 'IntuneWifiConfigurationPolicyAndroidOpenSourceProject-{0}' -f $WifiConfigurationPolicyAndroidOpenSourceProject.DisplayName $parameters = $WifiConfigurationPolicyAndroidOpenSourceProject $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyAndroidOpenSourceProject' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyIOS in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesIOS) { $resourceTitle = 'IntuneWifiConfigurationPolicyIOS-{0}' -f $WifiConfigurationPolicyIOS.DisplayName $parameters = $WifiConfigurationPolicyIOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyIOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyMacOS in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesMacOS) { $resourceTitle = 'IntuneWifiConfigurationPolicyMacOS-{0}' -f $WifiConfigurationPolicyMacOS.DisplayName $parameters = $WifiConfigurationPolicyMacOS $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyMacOS' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WifiConfigurationPolicyWindows10 in $ConfigurationData.NonNodeData.Intune.WifiConfigurationPoliciesWindows10) { $resourceTitle = 'IntuneWifiConfigurationPolicyWindows10-{0}' -f $WifiConfigurationPolicyWindows10.DisplayName $parameters = $WifiConfigurationPolicyWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWifiConfigurationPolicyWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsAutopilotDeploymentProfileAzureADHybridJoined in $ConfigurationData.NonNodeData.Intune.WindowsAutopilotDeploymentProfilesAzureADHybridJoined) { $resourceTitle = 'IntuneWindowsAutopilotDeploymentProfileAzureADHybridJoined-{0}' -f $WindowsAutopilotDeploymentProfileAzureADHybridJoined.DisplayName $parameters = $WindowsAutopilotDeploymentProfileAzureADHybridJoined $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('EnrollmentStatusScreenSettings')) { $parameters.EnrollmentStatusScreenSettings = $parameters.EnrollmentStatusScreenSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsEnrollmentStatusScreenSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('OutOfBoxExperienceSettings')) { $parameters.OutOfBoxExperienceSettings = $parameters.OutOfBoxExperienceSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphoutOfBoxExperienceSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsAutopilotDeploymentProfileAzureADHybridJoined' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsAutopilotDeploymentProfileAzureADJoined in $ConfigurationData.NonNodeData.Intune.WindowsAutopilotDeploymentProfilesAzureADJoined) { $resourceTitle = 'IntuneWindowsAutopilotDeploymentProfileAzureADJoined-{0}' -f $WindowsAutopilotDeploymentProfileAzureADJoined.DisplayName $parameters = $WindowsAutopilotDeploymentProfileAzureADJoined $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('EnrollmentStatusScreenSettings')) { $parameters.EnrollmentStatusScreenSettings = $parameters.EnrollmentStatusScreenSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsEnrollmentStatusScreenSettings1' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('OutOfBoxExperienceSettings')) { $parameters.OutOfBoxExperienceSettings = $parameters.OutOfBoxExperienceSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphoutOfBoxExperienceSettings1' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsAutopilotDeploymentProfileAzureADJoined' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsInformationProtectionPolicyWindows10MdmEnrolled in $ConfigurationData.NonNodeData.Intune.WindowsInformationProtectionPoliciesWindows10MdmEnrolled) { $resourceTitle = 'IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolled-{0}' -f $WindowsInformationProtectionPolicyWindows10MdmEnrolled.DisplayName $parameters = $WindowsInformationProtectionPolicyWindows10MdmEnrolled $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('DataRecoveryCertificate')) { $parameters.DataRecoveryCertificate = $parameters.DataRecoveryCertificate | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionDataRecoveryCertificate' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseInternalProxyServers')) { $parameters.EnterpriseInternalProxyServers = $parameters.EnterpriseInternalProxyServers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseIPRanges')) { $parameters.EnterpriseIPRanges = $parameters.EnterpriseIPRanges | ForEach-Object { if ($_.ContainsKey('Ranges')) { $_.Ranges = $_.Ranges | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphIpRange' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionIPRangeCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseNetworkDomainNames')) { $parameters.EnterpriseNetworkDomainNames = $parameters.EnterpriseNetworkDomainNames | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseProtectedDomainNames')) { $parameters.EnterpriseProtectedDomainNames = $parameters.EnterpriseProtectedDomainNames | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseProxiedDomains')) { $parameters.EnterpriseProxiedDomains = $parameters.EnterpriseProxiedDomains | ForEach-Object { if ($_.ContainsKey('ProxiedDomains')) { $_.ProxiedDomains = $_.ProxiedDomains | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphProxiedDomain' -Properties $_ -NoInvoke).Invoke($_) } } if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionProxiedDomainCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('EnterpriseProxyServers')) { $parameters.EnterpriseProxyServers = $parameters.EnterpriseProxyServers | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ExemptApps')) { $parameters.ExemptApps = $parameters.ExemptApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionApp' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('NeutralDomainResources')) { $parameters.NeutralDomainResources = $parameters.NeutralDomainResources | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('ProtectedApps')) { $parameters.ProtectedApps = $parameters.ProtectedApps | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionApp' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('SmbAutoEncryptedFileExtensions')) { $parameters.SmbAutoEncryptedFileExtensions = $parameters.SmbAutoEncryptedFileExtensions | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsInformationProtectionResourceCollection' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolledPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolled' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsUpdateForBusinessDriverUpdateProfileWindows10 in $ConfigurationData.NonNodeData.Intune.WindowsUpdateForBusinessDriverUpdateProfilesWindows10) { $resourceTitle = 'IntuneWindowsUpdateForBusinessDriverUpdateProfileWindows10-{0}' -f $WindowsUpdateForBusinessDriverUpdateProfileWindows10.DisplayName $parameters = $WindowsUpdateForBusinessDriverUpdateProfileWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsUpdateForBusinessDriverUpdateProfileWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsUpdateForBusinessFeatureUpdateProfileWindows10 in $ConfigurationData.NonNodeData.Intune.WindowsUpdateForBusinessFeatureUpdateProfilesWindows10) { $resourceTitle = 'IntuneWindowsUpdateForBusinessFeatureUpdateProfileWindows10-{0}' -f $WindowsUpdateForBusinessFeatureUpdateProfileWindows10.DisplayName $parameters = $WindowsUpdateForBusinessFeatureUpdateProfileWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('RolloutSettings')) { $parameters.RolloutSettings = $parameters.RolloutSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsUpdateRolloutSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsUpdateForBusinessFeatureUpdateProfileWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsUpdateForBusinessQualityUpdateProfileWindows10 in $ConfigurationData.NonNodeData.Intune.WindowsUpdateForBusinessQualityUpdateProfilesWindows10) { $resourceTitle = 'IntuneWindowsUpdateForBusinessQualityUpdateProfileWindows10-{0}' -f $WindowsUpdateForBusinessQualityUpdateProfileWindows10.DisplayName $parameters = $WindowsUpdateForBusinessQualityUpdateProfileWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('ExpeditedUpdateSettings')) { $parameters.ExpeditedUpdateSettings = $parameters.ExpeditedUpdateSettings | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphexpeditedWindowsQualityUpdateSettings' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsUpdateForBusinessQualityUpdateProfileWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } foreach ($WindowsUpdateForBusinessRingUpdateProfileWindows10 in $ConfigurationData.NonNodeData.Intune.WindowsUpdateForBusinessRingUpdateProfilesWindows10) { $resourceTitle = 'IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10-{0}' -f $WindowsUpdateForBusinessRingUpdateProfileWindows10.DisplayName $parameters = $WindowsUpdateForBusinessRingUpdateProfileWindows10 $parameters.ApplicationId = $ApplicationId $parameters.TenantId = $TenantId $parameters.CertificateThumbprint = $CertificateThumbprint if ($parameters.ContainsKey('UniqueId')) { $parameters.Remove('UniqueId') } if ($parameters.ContainsKey('InstallationSchedule')) { $parameters.InstallationSchedule = $parameters.InstallationSchedule | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_MicrosoftGraphwindowsUpdateInstallScheduleType' -Properties $_ -NoInvoke).Invoke($_) } } if ($parameters.ContainsKey('Assignments')) { $parameters.Assignments = $parameters.Assignments | ForEach-Object { if ($_.ContainsKey('UniqueId')) { $_.Remove('UniqueId') } (Get-DscSplattedResource -ResourceName 'MSFT_DeviceManagementConfigurationPolicyAssignments' -Properties $_ -NoInvoke).Invoke($_) } } (Get-DscSplattedResource -ResourceName 'IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10' -ExecutionName $resourceTitle -Properties $parameters -NoInvoke).Invoke($parameters) } } |