Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load anything #208

Open
Dhull2288 opened this issue Apr 1, 2024 · 2 comments
Open

Unable to load anything #208

Dhull2288 opened this issue Apr 1, 2024 · 2 comments

Comments

@Dhull2288
Copy link

Whatever I click, it doesn't show up. Here is the error:

Invoke-MgGraphRequest : A parameter cannot be found that matches parameter name 'Url'.
At C:\temp\IntuneManagement-master\Extensions\MSGraph.psm1:619 char:41

  • $graphObjects = Invoke-GraphRequest -Url $url @params
    
  •                                     ~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Invoke-MgGraphRequest], ParameterBindingExc
      eption
    • FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Graph.PowerShell.Authentication.
      Cmdlets.InvokeMgGraphRequest
@Micke-K
Copy link
Owner

Micke-K commented Apr 2, 2024

Hello!

Are you running it from ISE, Visual Studio Code or something similar?

This can happen if Microsoft Graph module is installed and loaded which causes the code to run the Invoke-GraphRequest from the Graph module instead of IntuneManagement. Invoke-GraphRequest is also an alias for Invoke-MgGraphRequest.

Can you replace the attached psm1 file and try with that. Let me know how it goes.

Cheers!

CloudAPIPowerShellManagement.zip

@Dhull2288
Copy link
Author

Yes, I was using ISE. Replacing the psm1 file fixed the problem.
Thank you so much for the help and the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants