I ran this command
Get-ChildItem -Path C:\ -Filter Microsoft.AnalysisServices.AdomdClient.dll -Recurse -ErrorAction SilentlyContinue
3-4 time, I got new path, Then it worked;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I have added the Microsoft.AnalysisServices.AdomdClient.dll file as a zip file in the module using add module in an Azure PowerShell runbook (version 5.1). I am now referencing it in my PowerShell script using:
Add-Type -Path "C:\Modules\User\Microsoft.AnalysisServices.AdomdClient\Microsoft.AnalysisServices.AdomdClient.dll"
However, I am receiving the following error:
`System.Management.Automation.ParameterBindingException: Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path 'C:\Modules\User\Microsoft.AnalysisServices.AdomdClient\Microsoft.AnalysisServices.AdomdClient.dll' because it does not exist."
I checked the correct path using the command:
Get-ChildItem -Path C:\ -Filter Microsoft.AnalysisServices.AdomdClient.dll -Recurse -ErrorAction SilentlyContinue
The result is same as what I have written in Add-path.
How can I resolve this error and successfully reference the DLL file in my script?
I ran this command
Get-ChildItem -Path C:\ -Filter Microsoft.AnalysisServices.AdomdClient.dll -Recurse -ErrorAction SilentlyContinue
3-4 time, I got new path, Then it worked;