Forum Discussion
indecentbusta
Aug 02, 2021Copper Contributor
Authenticate to Connect-MSGraph with PowerShell
Let me preface this question by stating I may be misunderstanding how this is supposed to work. I'm writing a PowerShell script and need to be able to connect to MS Graph to use Intune Graph. I'm run...
VasilMichev
Aug 03, 2021MVP
It's authenticating, but that doesn't mean the token you're getting is being procured for the purposes of the MSGraph module. Instead, you can use the token directly when submitting a HTTPS request against the Graph.
Use the Connect-MSGraph cmdlet as suggested in the error message.
Use the Connect-MSGraph cmdlet as suggested in the error message.