r/PowerShell • u/Any-Victory-1906 • Feb 12 '26
Powershell Studio 2024 and Graph 2.34
Hi,
I am experiencing an issue with Connect-MgGraph interactive authentication inside PowerShell Studio.
After updating the Microsoft.Graph modules, Connect-MgGraph now uses Web Account Manager (WAM) by default on Windows.
In Visual Studio Code, the interactive authentication window appears normally. However, in PowerShell Studio, the authentication window does not appear at all.
Did someone got this issue and solved it?
Thanks,
8
Upvotes
View all comments
Show parent comment
1
u/Any-Victory-1906 Feb 12 '26
Thanks — the problem is that in PowerShell Studio I never see the “To sign in, open https://microsoft.com/devicelogin and enter code XXXXX” message.
In VS Code / a normal console, -UseDeviceCode prints that message and the flow works.
In PowerShell Studio (after updating Microsoft.Graph 2.34 where WAM is default), interactive auth UI never shows, and Device Code also doesn’t show the user code (no browser opens, no “enter the code …” line).
Instead I only see MSAL debug output (DeviceCodeCredential.Authenticate invoked / authorization_pending polling), but the actual user code is not surfaced.
So the issue seems to be how PowerShell Studio hosts PowerShell and handles the output streams / WAM UI, not the Graph cmdlet itself.
Any idea if PS Studio has a setting to allow the WAM window to show, or to surface the device code message (Information stream), or to force the older embedded browser behavior?