skip to Main Content

I just installed the Microsoft.Graph Module on a fresh Windows 11 installation. Connecting with Connect-MgGraph works fine but if i use any other command after successfully authenticating I get the following error.
I have found nothing about this error, but here are a few things I tried:

  1. Reinstalling Microsoft.Graph module
  2. Installing .NET Core 7
  3. Installing Az Module
The type [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet] was not found.
In C:Program FilesWindowsPowerShellModulesMicrosoft.Graph.Users2.6.0exportsProxyCmdletDefinitions.ps1:16320
Zeichen:52
+ ... ommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePS ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Windo...n.AzurePSCmdlet:TypeName) [], ParentContainsErrorRe
   cordException
    + FullyQualifiedErrorId : TypeNotFound

2

Answers


  1. Same issue here, took me the better half of the day.
    I am now trying 2.5

    Login or Signup to reply.
  2. Same here, had to uninstall 2.6 but I was blocked by "Microsoft.Graph.Authentication".
    I uninstalled all others modules first then "Microsoft.Graph.Authentication" with that command :

    Get-InstalledModule Microsoft.Graph.* | ? {$_.Name -ne "Microsoft.Graph.Authentication"} | Uninstall-Module
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search