Azure / Azure/securedworkstation

Microsoft.IdentityModel.Clients.ActiveDirectory.dll not found

Open
#27 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
260
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.