Skip to content

Commit

Permalink
Merge pull request #5393 from FabienTschanz/fix/intune-endpoint-detec…
Browse files Browse the repository at this point in the history
…tion-windows

Fix export of changed property name in EDR Windows10
  • Loading branch information
NikCharlebois authored Nov 13, 2024
2 parents 95317fe + 2531cc6 commit eea1412
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 @@ -18,6 +18,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 eea1412

Please sign in to comment.