microsoftgraph / powershell-intune-samples

This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.36k stars 657 forks source link

Need to run Update-MSGraphEnvironment every new PS session #273

Open YANSA23 opened 5 months ago

YANSA23 commented 5 months ago

Not sure if it was a missed step, unclear instructions, or intentional, but every time I start a new PS session and run connect-msgraph, I need to run "Update-MSGraphEnvironment -appid xxxxxxxxxxxxxx" every time before connecting, and then it works as intended. Surely I don't have to update it everytime? How can I permanently update it?

MarineM310 commented 1 month ago

I also am wondering if I missed something?