Microsoft Graph Error "Assembly with same name is already loaded"

Efa Shahira 20 Reputation points
2023-12-17T21:36:42.93+00:00

Hello,

I have a script that runs locally but encounter some error and I already try to import the module but still get another error.

Here is the error:

Get-MgRiskyUser: Line |    4 |  $riskyUsers = Get-MgRiskyUser      |                ~~~~~~~~~~~~~~~      | The 'Get-MgRiskyUser' command was found in the module 'Microsoft.Graph.Identity.SignIns', but the module could not be loaded due to the following error: [Assembly with same name is already loaded] For more information, run 'Import-Module Microsoft.Graph.Identity.SignIns'.
Import-Module: Assembly with same name is already loaded
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
92 questions
0 comments No comments
{count} votes

Accepted answer
  1. cathy litton 80 Reputation points
    2023-12-25T06:51:39.9366667+00:00

    Import-Module: Assembly with same name is already loaded

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful