Closed CollinB42 closed 2 months ago
PowerShell 7 is not yet correctly supported in Microsoft365DSC. Please uninstall all modules from inside the PowerShell 7 window, then do the same from PowerShell 5, and install the module again in PowerShell 5. The modules must be installed system wide and not in the current user scope.
@CollinB42 Did you try the steps I suggested? Can we close this issue?
@CollinB42 Did you try the steps I suggested? Can we close this issue?
Hey @FabienTschanz, I was able to get this working with a clean install in PowerShell 5!
Awesome, glad to hear you got it working. There are a couple of improvements that I made over in the https://github.com/microsoft/Microsoft365DSC/pull/4916 Pull Request. Can you or @andikrueger close this issue here therefore?
Sure can!
Description of the issue
I've been having some issues getting DSC to run, the amount of these errors it gets seems to cancel the script/module past a certain point. I've tried running M365DSC with the default configuration, and with various configurations from the web UI. This is all with PowerShell 7, as I haven't gotten the module to work correctly with PowerShell 5.
I've gone through and verified Graph API permissions for PowerShell and don't think this is the cause. The tool is able to grab some information but not all, and some cmdlets do error out due to a lack of licensing for the feature it's attempting to pull information from.
Verbose logs showing the problem
Environment Information + PowerShell Version