Microsoft.Graph module commands not recognized
I am using Powershell in an attempt to automate onboarding for Microsoft365 account creation. When I use “Import-Module Microsoft.Graph” the step infinitely runs until timeout. “Install-Module Microsoft.Graph” passes through, but then commands in that module are said to be not recognized (Ex: Connect-MgGraph). We are a company of Mac users
5 Replies
i'll have a look
in the meantime, does it work if you run Install then Import?
It has been running for about 3 minutes now with no progress. The comments are different commands and combinations I have been trying. Thank you for the quick response, awesome service
loading the whole Microsoft.Graph can take a LOT of time (https://www.reddit.com/r/PowerShell/comments/1ah1aby/msgraph_modules_import_extremely_slowly_andtaking/)
Reddit
From the PowerShell community on Reddit: MSGraph Modules import ext...
Explore this post and more from the PowerShell community
you should import the submodule you need (.e.g Import-Module Microsoft.Graph.Notes)
and you don't need to run install-module (modules are installed automatically based on imports)
I ran into another issue, but I believe that’s on my end. Thank you so much for the helpful and timely response, if there’s a place I can write you a review please let me know