Skip to content

Commit

Permalink
Fix export of changed property name in EDR Windows10
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Tschanz committed Nov 13, 2024
1 parent 1e6fa81 commit 2531cc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* IntuneAntivirusPolicyWindows10SettingCatalog
* Update properties to be upper-case.
Fixes [#5373](https://github.com/microsoft/Microsoft365DSC/issues/5373)
* IntuneEndpointDetectionAndResponsePolicyWindows10
* Remove changed property name from export.
FIXES [#5300](https://github.com/microsoft/Microsoft365DSC/issues/5300)
* IntuneSecurityBaselineMicrosoftEdge
* Deprecate property `authschemes` and replace with `AuthSchemes_AuthSchemes`
* M365DSCDRGUtil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ function Get-TargetResource
[array]$settings = Get-MgBetaDeviceManagementConfigurationPolicySetting `
-DeviceManagementConfigurationPolicyId $Identity `
-ExpandProperty 'settingDefinitions' `
-All `
-ErrorAction Stop

$policySettings = @{}
Expand All @@ -130,7 +131,7 @@ function Get-TargetResource
$policySettings.Remove('ClientConfigurationPackageType')
$policySettings.Remove('onboarding')
$policySettings.Remove('offboarding')
$policySettings.Remove('autofromconnector')
$policySettings.Remove('onboarding_fromconnector')

# Removing TelemetryReportingFrequency because it's deprecated and doesn't need to be evaluated and enforced
$policySettings.Remove('telemetryreportingfrequency')
Expand Down

0 comments on commit 2531cc6

Please sign in to comment.