You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, there are several different approaches on how to verify that the latest and greatest version of M365DSC is installed and to check if there are new dependencies available. Also there are various checks, if the dependencies are installed correctly and no older versions of the module/dependencies are present.
Following a list of functions that handle some parts of all these mechanisms.
It would be great to unify these functions to make it easier to maintain.
if ([Version]($GalleryVersion.Version) -gt [Version]($currentVersion.Version))
{
$message="A NEWER VERSION OF MICROSOFT365DSC {v$($GalleryVersion.Version)} IS AVAILABLE IN THE POWERSHELL GALLERY. TO UPDATE, RUN:`r`nInstall-Module Microsoft365DSC -Force -AllowClobber"
if (([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
At the moment, there are several different approaches on how to verify that the latest and greatest version of M365DSC is installed and to check if there are new dependencies available. Also there are various checks, if the dependencies are installed correctly and no older versions of the module/dependencies are present.
Following a list of functions that handle some parts of all these mechanisms.
It would be great to unify these functions to make it easier to maintain.
Test-
MethodsTest-M365DSCDependenciesForNewVersions
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 2393 to 2437 in 526cf19
Test-M365DSCNewVersionAvailable
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 2939 to 2996 in 526cf19
Test-M365DSCModuleValiditiy
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 3567 to 3600 in 526cf19
Test-M365DSCDependencies
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 2439 to 2470 in 526cf19
Uninstall-
andRemove-
MethodsUninstall-M365DSCOutdatedDependencies
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 2533 to 2628 in 526cf19
Remove-M365DSCInvalidDependenciesFromSession
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 1250 to 1292 in 526cf19
Update-
MethodsUpdate-M365DSCDependencies
Microsoft365DSC/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Lines 2472 to 2531 in 526cf19
The text was updated successfully, but these errors were encountered: