Forum Discussion
heinzelrumpel
Mar 28, 2025Brass Contributor
MGraph suddenly stops working
PS C:\Windows> Get-MGUser -All
Get-MGUser : InteractiveBrowserCredential authentication failed:
In Zeile:1 Zeichen:1
+ Get-MGUser -All
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-MgUser_List], AuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgUser_List
Prior to this I did a "connect-mgraph -Scopes "User.Read.All" " and authenticated myself with MFA. Did not get an error doing so. Logged in as a global administrator.
Any ideas what i going wrong? I know, the error indicates Authentication Failure, but Authentication looks correct
3 Replies
Sort By
Any update?
I had the same issue when collaborating with someone on a project. Graph 2.26.0 had problems, and 2.25.0 was better. "
Uninstall-module -name "Microsoft.Graph.Authentication
Install-Module -Name Microsoft.Graph.Authentication -Scope CurrentUser -MaximumVersion 2.25.0- LainRobertsonSilver Contributor
Hi heinzelrumpel,
From your description, it doesn't sound like you've done anything wrong.
You could check the Application log in Event Viewer to see if there's a more detailed breakdown of the error(s).
I'd also check that you do not have multiple differing versions of the same modules installed - which can happen if you only every run Install-Module and Updates-Module.
You can check using:
Get-Module -ListAvailable -Name "Microsoft.Graph.*" | Select-Object -Property Scope, Version, Name | Sort-Object -Property Name, Version;
If you find you do have duplicate modules, you will want to remove the older version. Or, you could just remove them all and then reinstall the ones you need.
But this is just a generic tip since I haven't seen that error before nor can I reproduce it using the module versions I am currently using.
Cheers,
Lain