-
Notifications
You must be signed in to change notification settings - Fork 60
Open
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
Metadata
Metadata
Assignees
Labels
No labels