Skip to content

Microsoft.IdentityModel.Clients.ActiveDirectory.dll not found #27

@Wallace4444

Description

@Wallace4444

It seems this script tries to utilise an old, or no longer available, ADAL library when running.

When running MasterScript PAW.ps1, it fails with the following:

Checking for AzureAD module...
AzureAD PowerShell module not found, looking for AzureADPreview
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Users\USER\Documents\Wi
ndowsPowerShell\Modules\AzureADPreview\2.0.2.183\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' or one of its
dependencies. The system cannot find the file specified."
At C:\Users\Will\downloads\securedworkstation-master\paw\Import-PAW-DeviceConfiguration.ps1:90 char:1
+ [System.Reflection.Assembly]::LoadFrom($adal) | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileNotFoundException

Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Users\USER\Documents\Wi
ndowsPowerShell\Modules\AzureADPreview\2.0.2.183\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll' or one
of its dependencies. The system cannot find the file specified."
At C:\Users\Will\downloads\securedworkstation-master\paw\Import-PAW-DeviceConfiguration.ps1:92 char:1
+ [System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : FileNotFoundException

Cannot find type [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]: verify that the assembly containing this type is loaded.

That file doesn't exist in AzureADPreview\2.0.2.183

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