Closed robinmalik closed 1 year ago
Hi @robinmalik, this definitely looks like a PowerShellGet issue. Thank you for the extensive debugging information, we'll get this resolved in our next release!
I'm not able to repro with the current build of master. This should be resolved with our next release (out next week).
Prerequisites
Steps to reproduce
When installing PowerShellGet v3, specifically 3.0.17-beta17
Connect-ExchangeOnline
breaks under PowerShell 5.1 with the following error visible in the shell ($Error[0]
):Whilst line 632 maps to
$ImportedModuleName = $ImportedModule.Name;
the error references a line above:$ImportedModule = New-EXOModule -ConnectionContext $ConnectionContext -SkipLoadingFormatData:$SkipLoadingFormatData;
There is another error that isn’t displayed present in
$Error[1]
:This is referencing a manifest file using a path with a GUID in. The path does exist without the GUID:
A few extra notes:
• This problem exists for ExchangeOnlineManagement module version 3.0.0 and 3.1.0. • If PowerShellGet v3 is removed (and 2.2.5 used) then
Connect-ExchangeOnline
works. • PowerShell 7 on the same machine with the same version of PowerShellGet works. • I’ve not tried previous previews of PowerShellGet v3.Apologies if this isn't specifically PowerShellGet issue, but we are unable to use these v3 versions on machines that also require ExchangeOnlineManagement which is a pain. If I'm able, I'll try and test other earlier v3 versions of PowerShellGet and earlier versions of ExchangeOnlineManagement.
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response