-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues due to multiple versions of M365DSC in regards to reporting - Test-M365ModuleValidity should be called #2074
Comments
so what you're suggesting is a method that just checks for multiple installations of the m365dsc module, checks if theres multiple versions installed (e.g by running if ($null -ne (Get-Module -Name Microsoft365DSC -List)[1]) { <# uninstall outdated versions by comparing to psgallery version #> } and the integrated method Test-M365DSCDependencies? |
I would go with a function like this (sorry, I’m writing this on my mobile; PseudoCode)
|
I'll go with your approach, changing my pr in a bit. appreciate the input :) |
I've just pushed an update to my PR |
Thanks. This is Beth close to what I had in mind. It would be great to include this function in reporting and export cmdLets. This would solve many issues due to outdated modules. |
updated again :D |
Actually I think there is one thing missing. The new function is not called from the reporting mechanism, isn’t it? |
Reopening this issue, as there is one part missing: All Reporting functions within M365 should call Test-M365ModuleValidity and display a warning message. |
At the moment there are various issues that are caused by the presence of multiple versions of M365 DSC on the local system. These issues can be resolved by uninstalling the versions not needed.
The following command resolves most of the issues:
I would suggest to introduce a new method
Test-M365DSCUpdateStatus
to verify if, there are updates available and/or multiple versions present on the local system. This function should be called within the repot and documentation functions and show warnings, if there issues detected.The text was updated successfully, but these errors were encountered: