diff --git a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 index 698ce0e874..673407432a 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 @@ -4063,8 +4063,8 @@ function Test-M365DSCModuleValidity $InformationPreference = 'Continue' - # validate only one installation of the module is present (and it's the latest version available from the psgallery) - $latestVersion = (Find-Module -Name 'Microsoft365DSC' -Repository 'PSGallery' -Includes 'DSCResource').Version + # validate only one installation of the module is present (and it's the latest version available) + $latestVersion = (Find-Module -Name 'Microsoft365DSC' -Includes 'DSCResource').Version $localVersion = (Get-Module -Name 'Microsoft365DSC').Version if ($latestVersion -gt $localVersion)