diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e35e7ed1d..5e318a5b43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,16 @@ # Change log for Microsoft365DSC -# UNRELEASED +# 1.22.720.1 -* EXOCASMailboxSettings - * Fixed issue if there are mailboxes with the same name - FIXES [#2117](https://github.com/microsoft/Microsoft365DSC/issues/2117) +* AADAuthorizationPolicy + * Fixed issue with the DefaultUserRolePermissionGrantPoliciesAssigned property. * AADGroup * Added support for Group Licensing by adding the AssignedLicenses property. * Added support for members and owners. FIXES [#1066](https://github.com/microsoft/Microsoft365DSC/issues/1066) +* EXOCASMailboxSettings + * Fixed issue if there are mailboxes with the same name + FIXES [#2117](https://github.com/microsoft/Microsoft365DSC/issues/2117) * EXODistributionGroup * Initial release. FIXES [#1802](https://github.com/microsoft/Microsoft365DSC/issues/1802) @@ -43,6 +45,8 @@ FIXES [#1979](https://github.com/microsoft/Microsoft365DSC/issues/1979) * EXPORT: Changed the way resources' modules are imported to improve startup performance. FIXES [#1745](https://github.com/microsoft/Microsoft365DSC/issues/1745) + * Added a new Test-M365DSCModuleValidity cmdlet. + * Updated the Uninstall-M365DSCOutdatedDependencies cmdlet to delete module files. # 1.22.713.1 diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneAppProtectionPolicyAndroid/MSFT_IntuneAppProtectionPolicyAndroid.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneAppProtectionPolicyAndroid/MSFT_IntuneAppProtectionPolicyAndroid.schema.mof index f50f58a5ef..09bd9dcd03 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneAppProtectionPolicyAndroid/MSFT_IntuneAppProtectionPolicyAndroid.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneAppProtectionPolicyAndroid/MSFT_IntuneAppProtectionPolicyAndroid.schema.mof @@ -28,6 +28,8 @@ class MSFT_IntuneAppProtectionPolicyAndroid : OMI_BaseResource [Write, Description("List of IDs representing the Android apps controlled by this protection policy.")] String Apps[]; [Write, Description("List of IDs of the groups assigned to this Android Protection Policy.")] String Assignments[]; [Write, Description("List of IDs of the groups that are excluded from this Android Protection Policy.")] String ExcludedGroups[]; + [Write, Description("Defines whether or not the policy is assigned.")] Boolean IsAssigned; + [Write, Description("Specifies how browsers should be managed by the policy.")] String ManagedBrowser; [Write, Description("Present ensures the policy exists, absent ensures it is removed."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure; [Write, Description("Credentials of the Intune Admin"), EmbeddedInstance("MSFT_Credential")] string Credential; [Write, Description("ID of the Azure Active Directory application to authenticate with.")] String ApplicationId; diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog.psm1 index d231755dad..b4b236bda4 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog/MSFT_IntuneExploitProtectionPolicyWindows10SettingCatalog.psm1 @@ -499,9 +499,10 @@ function Export-TargetResource try { $policyTemplateID='d02f2162-fcac-48db-9b7b-b0a3f160d2c2_1' - [array]$policies = Get-MgDeviceManagementConfigurationPolicy ` + [array]$allPolicies = Get-MgDeviceManagementConfigurationPolicy ` -ErrorAction Stop ` - -TemplateId $policyTemplateID + -All:$true + $policies = $allPolicies | Where-Object -FilterScript {$_.TemplateReference.TemplateId -eq $policyTemplateId} if ($policies.Length -eq 0) { diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SCRetentionComplianceRule/MSFT_SCRetentionComplianceRule.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SCRetentionComplianceRule/MSFT_SCRetentionComplianceRule.psm1 index c48dc7cb1a..9a97139398 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SCRetentionComplianceRule/MSFT_SCRetentionComplianceRule.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SCRetentionComplianceRule/MSFT_SCRetentionComplianceRule.psm1 @@ -95,6 +95,11 @@ function Get-TargetResource { Write-Verbose "Found existing RetentionComplianceRule $($Name)" $AssociatedPolicy = Get-RetentionCompliancePolicy $RuleObject.Policy + $RetentionComplianceActionValue = $null + if (-not [System.String]::IsNullOrEmpty($ruleObject.RetentionComplianceAction)) + { + $RetentionComplianceActionValue = $RuleObject.RetentionComplianceAction + } $result = @{ Name = $RuleObject.Name Comment = $RuleObject.Comment @@ -104,8 +109,8 @@ function Get-TargetResource RetentionDurationDisplayHint = $RuleObject.RetentionDurationDisplayHint ContentMatchQuery = $RuleObject.ContentMatchQuery ExpirationDateOption = $RuleObject.ExpirationDateOption - RetentionComplianceAction = $RuleObject.RetentionComplianceAction - Credential = $Credential + RetentionComplianceAction = $RetentionComplianceActionValue + Credential = $Credential Ensure = 'Present' } diff --git a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 index 4f80bad378..b594cafc9a 100644 --- a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 +++ b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2022-07-13 +# Generated on: 2022-07-20 @{ @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. - ModuleVersion = '1.22.713.1' + ModuleVersion = '1.22.720.1' # Supported PSEditions # CompatiblePSEditions = @() @@ -99,6 +99,7 @@ 'Test-M365DSCAgent', 'Test-M365DSCDependencies', 'Test-M365DSCDependenciesForNewVersions', + 'Test-M365DSCModuleValidity', 'Uninstall-M365DSCOutdatedDependencies', 'Update-M365DSCAllowedGraphScopes', 'Update-M365DSCAzureAdApplication', @@ -137,35 +138,50 @@ # ReleaseNotes of this module ReleaseNotes = "* AADAuthorizationPolicy + * Fixed issue with the DefaultUserRolePermissionGrantPoliciesAssigned property. + * AADGroup + * Added support for Group Licensing by adding the AssignedLicenses property. + * Added support for members and owners. + FIXES [#1066](https://github.com/microsoft/Microsoft365DSC/issues/1066) + * EXOCASMailboxSettings + * Fixed issue if there are mailboxes with the same name + FIXES [#2117](https://github.com/microsoft/Microsoft365DSC/issues/2117) + * EXODistributionGroup * Initial release. - * AADConditionalAccessPolicy - * Fixed issue for Included and Excluded properties where the last instance couldn't be removed. - FIXES [#2058](https://github.com/microsoft/Microsoft365DSC/issues/2058) & [#2079](https://github.com/microsoft/Microsoft365DSC/issues/2079) - * EXOATPPolicyForO365 - * Deprecated properties AllowClickThrough, EnableSafeLinksForO365Clients & TrackClicks. - * EXOAuthenticationPolicyAssignment + FIXES [#1802](https://github.com/microsoft/Microsoft365DSC/issues/1802) + * EXOMalwareFilterPolicy + * DEPRECATED parameter CustomAlertText. + * IntuneAntivirusPolicyWindows10SettingCatalog * Initial release. - * EXOCASMailboxSettings - * New resource to configure Exchange Online CAS Mailbox settings. - * EXOSafeLinksPolicy - * Deprecated properties DoNotAllowClickThrough, DoNotTrackUserClicks & IsEnabled. - * IntuneAppProtectionPolicyiOS - * Fixed issue with creation a new policies where it was complaining about invalid minimum versions. - * Fixed issues where creating new policies threw an error complaining about an invalid duration format. - FIXES [#2019](https://github.com/microsoft/Microsoft365DSC/issues/2019) - * Added the CustomBrowserProtocol paramters. - FIXES [#2009](https://github.com/microsoft/Microsoft365DSC/issues/2009) - * IntuneDeviceAndAppManagementAssignmentFilter + * IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager + * Initial release. + * IntuneDeviceCompliancePolicyWindows10 + * Switched to using the beta profile in order to aapture all parameters. + FIXES [#1998](https://github.com/microsoft/Microsoft365DSC/issues/1998) + * IntuneDeviceConfigurationPolicyWindows10 + * Fixed issue where the value for the DefenderDetectedMalwareActions property wasn't properly handled. + FIXES [#1479](https://github.com/microsoft/Microsoft365DSC/issues/1479) + * IntuneExploitProtectionPolicyWindows10SettingCatalog * Initial release. - * SCComplianceTag - * Fixed issue where FilePlanProperty was not properly applied unless another child property was also modified. - * SPOSharingSettings - * Updated code to remove None as valid value for DefaultLinkPermission. If value is set to None default to Edit. - * DEPENDENCIES - * Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.150. - * Updated MSCloudLoginAssistant to version 1.0.87. + * O365OrgCustomizationSetting + * Added a warning to let users know the changes can take up to 24 hours to be reflected + FIXES [#1599](https://github.com/microsoft/Microsoft365DSC/issues/1599) + * PPTenantSettings + * Fixed the way parameters are passed to the Set-TenantSettings cmdlet. + FIXES [#1914](https://github.com/microsoft/Microsoft365DSC/issues/1914) + * TeamsTenantDialPlan + * Fixed an issue where the Normalization Rules strings were not properly exited. + FIXES [#2096](https://github.com/microsoft/Microsoft365DSC/issues/2096) + * TeamsUpdateManagementPolicy + * Changed the format of the UpdateTimeOfDay parameter to not include date as part of an export. + FIXES [#2062](https://github.com/microsoft/Microsoft365DSC/issues/2062) * MISC - * Made the Compare-M365DSCConfigurations cmdlet public." + * PowerPlatform: Standardized authentication on Credential and dropped support for Service Principal across resources. + FIXES [#1979](https://github.com/microsoft/Microsoft365DSC/issues/1979) + * EXPORT: Changed the way resources' modules are imported to improve startup performance. + FIXES [#1745](https://github.com/microsoft/Microsoft365DSC/issues/1745) + * Added a new Test-M365DSCModuleValidity cmdlet. + * Updated the Uninstall-M365DSCOutdatedDependencies cmdlet to delete module files." # Flag to indicate whether the module requires explicit user acceptance for install/update # RequireLicenseAcceptance = $false diff --git a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 index 2dca1b3b82..81bcc8ac81 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 @@ -2516,7 +2516,7 @@ function Uninstall-M365DSCOutdatedDependencies Write-Information -Message "Uninstalling $($foundModule.Name) Version {$($foundModule.Version)}" if (Test-Path -Path $($foundModule.Path)) { - Remove-Item $($foundModule.Path) -Force -Recurse + Remove-Item $($foundModule.ModuleBase) -Force -Recurse } } catch @@ -2544,7 +2544,7 @@ function Uninstall-M365DSCOutdatedDependencies Write-Information -Message "Uninstalling $($foundModule.Name) version {$($foundModule.Version)}" if (Test-Path -Path $($foundModule.Path)) { - Remove-Item $($foundModule.Path) -Force -Recurse + Remove-Item $($foundModule.ModuleBase) -Force -Recurse } } catch