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
3
u/raip Feb 12 '26
I don't use Powershell Studio 2024 - but, as long as it's not disabled, I'd recommend working around it with the -UseDeviceCode. That'll just plop a URL in the console that you can copy and paste in a browser to authenticate instead.
Alternatively, stand up a service principal and use a certificate instead.
5
u/edhaack Feb 12 '26
TIL: PowerShell Studio exists and is $600.
Verses: VS Code = Free. How do they think they have a better product?
1
u/Modify- Feb 12 '26
Any reason you NEED to use 2.34?
I would recommend 2.25 which has been rock solid for me.
For things where no direct commandlet is available I use Invoke-MgGraphRequest anyways.
1
u/redditusermatthew Feb 14 '26
Have you tried picking powershell 7 as the engine when you compile your exe
1
u/psrobin Feb 15 '26
Anything above 2.33 breaks for us using Windows PowerShell. Possibly related: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3479
2
u/teacheswithtech Feb 12 '26
Report the issue that you are seeing here. This is discussing some of the issues people are having authenticating in ways that were not planned for in this change. The primary one is people running PowerShell from a standard account but elevating using a different account.
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3481
-3
u/Crown_Eagle Feb 13 '26
Install -Module Microsoft.Graph