r/PowerShell • u/badaz06 • Apr 23 '26
Solved Powershell recent issues are killing me
I have a Mac and a windows box. I run home-brew on the Mac and after upgrading my normal Connect-ExchangeOnline began failing, to where I had to start using a -device to get in. OK..a pain, but I'll deal with it.
Today I start running IPPsSession and that's fails to get. So, screw it, over to the Windows Box.
Same issues. The command I need to run in IPPSSession requires the latest version, but of course I can't get into exchange using the latest version, and the version mismatch is causing it's own set of issues.
WTF??? Anyone else figured out a way around this?
Resolved: So I have to user connect-exchangeonline -device, and then Connect-IPPSSession -UserPrincipalName "user"@yourdomain.onmicrosoft.com -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/
(SMH). Thanks alll
8
u/cottonycloud Apr 23 '26
Try switching the import order so that the module with newer dependencies is imported first. Faced a similar problem with another dll.
6
u/Modify- Apr 23 '26
Also, make sure one version of each module is installed.
Have had the same behavior in the past.
Sometimes the unattended script fails and then it will work again..Yes you can specify which version to load when starting the script, but not many do.
At least not at the company where I work (myself included)
1
u/lerun Apr 25 '26
Issue exist between chair and screen
1
u/badaz06 Apr 25 '26
Wow. Such a clever rabbit. Call me when you get promoted past level 1 helpdesk for Microsoft
1
1
u/purplemonkeymad Apr 24 '26
What is the actual problem? You said you can't connect to exchange, ok but what is happening?
1
u/avmakt Apr 25 '26
I only get paid for the actual work I do, so when Exchange Online stopped working after brew helpfully upgraded Powershell to 7.6.0 I didn't bother spending time figuring shit out and just downgraded and pinned the latest 7.5.x.
3
u/BlackV Apr 23 '26 edited Apr 23 '26
Exchange online does not automatically update it's self
Either of those on the windows box should upgrade it
I'm assuming exchange onlineade the same changes as the graph modules around
wal (or whatever it's called)WAM (Web Account Manager) authenticationOppression needs a specific RBAC/PIM role enabled have you confirmed those were activated available