PowerShell Connect-SPOService No valid OAuth 2.0 authenticaton session exists

I have been using PowerShell 7 and SharePoint Online Management Shell for months.

I tried a few weeks ago and got an error when I was trying to go to Connect-SPOService -Url https://TENANTNAMEHERE -admin.sharepoint.com

I had PIM in with SharePoint Administrator RBAC as I had done before.

Now I get an error

WARNING: Unable to load DLL 'msalruntime': The specified module could not be found. (Exception from HRESULT: Ox8007007E)

I uninstalled the SharePoint Online Management Shell and restarted and ran sfc and DISM checks and restarted.

I AM able to get it to work if I tell it to go to the web browser yet not with the msalruntime where it is unable to load the DLL. I don't know if I should try to install this on another system and copy the DLL yet I would think with a fresh install it would write the DLL.

Windows PowerShell

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\svstem32> Import-Module Microsoft.Online.SharePoint.PowerShell

PS C:\WINDOWS\svstem32> Connect-SPOService -Url https://TENANTNAMEHERE-admin.sharepoint.com

WARNING: Unable to load DLL 'msalruntime': The specified module could not be found. (Exception from HRESULT: Ox8007007E) See https:/ aka.ms msal-net-wam#troubleshooting

Connect-SPOService : No valid OAuth 2.0 authentication session exists

At line:1 char:1

+ Connect-SPOService -url https://TENANTNAMEHERE-admin.sharepoint.com

+--------

CategoryInto : NotSpecified: (:) [Connect-SPOService], AuthenticationException

+FullyQualifiedErrorId : Microsoft.Online.SharePoint.PowerShell.AuthenticationException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService

PS C: \WINDoWS\svstem32>

reddit.com
u/MLCarter1976 — 13 days ago
▲ 30 r/sequim

The lights are going up at Railroad Bridge Park

The lights are being put on the tree at The Nature Center at Railroad Bridge Park!

They won't be turned on until November yet that crew have a lot of work to do to get all the trees lit and prepared! A great deal of effort to make the place look amazing during the holiday season!

u/MLCarter1976 — 16 days ago
▲ 3 r/sequim

Sirens for a fire?

anyone know if there is a fire happening that was set by someone south of the nature center and railroad bridge Park?

reddit.com
u/MLCarter1976 — 2 months ago
▲ 2 r/sequim

Gunther lost dog was it ever found?

Gunther lost dog-ever found?

I am at Railroad Bridge Park and see a sign for Gunther, a black lab dog that has been missing for a few months I believe, I think since February. I don't know if anyone has any update if the pup has been found or if it is still missing.

u/MLCarter1976 — 3 months ago

Good place to get donuts or pastries this morning

I am looking to have a nice morning breakfast bite of a donut or sweet roll or cinnamon roll or something quick and easy like a cheese Danish or something and wonder if there are any open today or now?

reddit.com
u/MLCarter1976 — 5 months ago
▲ 7 r/sequim

Railroad Bridge Park emergency?

Did anyone hear anything about Railroad Bridge Park having an emergency today? I heard at dinner that something might have happened.

reddit.com
u/MLCarter1976 — 5 months ago
▲ 407 r/goodnews

Hawaii ‘Lani’ monk seal: US agents arrest tourist after video shows a rock hurled at endangered animal | CNN

Man arrested near Seattle WA for harassing a monk seal in Hawaii.

cnn.com
u/MLCarter1976 — 5 months ago