Skip to content

The term 'Get-MgProfile' is not recognized as the name of a cmdlet #8

@RNalivaika

Description

@RNalivaika

PS C:\ > Get-AzureADIPRiskyUser
WARNING: Unable to find type [Microsoft.Graph.PowerShell.Authentication.Utilities.DependencyAssemblyResolver].
Get-MgProfile : The term 'Get-MgProfile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\IdentityProtectionTools\Get-AzureADIPRiskyUser.ps1:84 char:18

I guess this is because "Microsoft Graph PowerShell SDK V2" beta features can no longer be accessed directly..

Graph module version info:

PS C:> Get-InstalledModule | Where-Object {$_.name -match 'Microsoft.Graph'} | Select-Object version,name

Version Name


2.4.0 Microsoft.Graph.Authentication
2.4.0 Microsoft.Graph.Groups
2.4.0 Microsoft.Graph.Identity.DirectoryManagement
2.4.0 Microsoft.Graph.Identity.SignIns
2.4.0 Microsoft.Graph.Security
2.4.0 Microsoft.Graph.Users

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions