Skip to content

Commit

Permalink
Migrate Intune ASR Policies to new settings catalog cmdlets and add n…
Browse files Browse the repository at this point in the history
…ew parameters
  • Loading branch information
Fabien Tschanz authored and FabienTschanz committed Jun 12, 2024
1 parent cbaa7f0 commit 8fa6a7c
Show file tree
Hide file tree
Showing 8 changed files with 773 additions and 1,044 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

* IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy
* Migrate to new settings catalog cmdlets.
* IntuneSettingCatalogASRRulesPolicyWindows10
* Migrate to new settings catalog cmdlets.
* IntuneExploitProtectionPolicyWindows10SettingCatalog
* Migrate to new settings catalog cmdlets.
* M365DSCDRGUtil
* Fixes an issue with the settings catalog property generation.
* Force array as parameter in `Compare-M365DSCIntunePolicyAssignment`.
* Fixes issues with values of type `groupSettingCollection` and `choiceSetting`
when creating the settings catalog policy settings body.
* M365DSCUtil
* Fixes an issue where the comparison with null-valued desired value throws an error.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ function Export-TargetResource
[array]$policies = Get-MgBetaDeviceManagementConfigurationPolicy `
-All:$true `
-Filter $Filter `
-ErrorAction Stop | Where-Object -FilterScript { $_.TemplateReference.TemplateId -eq $policyTemplateID } `
-ErrorAction Stop | Where-Object -FilterScript { $_.TemplateReference.TemplateId -eq $policyTemplateID }

if ($policies.Length -eq 0)
{
Expand Down
Loading

0 comments on commit 8fa6a7c

Please sign in to comment.