Closed jiemjiem closed 6 months ago
I happen to have a French language Windows Server 2022 so I tested on there and didn't have issues. However, I can reproduce intentionally on any language OS, including French.
Are you installing the module using Install-Module or another method? The way I can reproduce it is by manually downloading the module and placing it in the directory. The reason it throws the error (at least on my system) is because all of the DLL files are blocked by Windows because I downloaded via a browser. I've never seen Windows block a module using Install-Module but maybe that is the case also.
If you are manually downloading it as a zip or something like that, before extracting it, right-click on it and open the Properties and unblock the file. Then extract it.
If you aren't manually downloading it or if you already have it extracted, you can open PowerShell and navigate to the MilestonePSTools folder in the Modules folder and then run the following command which will make sure everything is unblocked:
Get-ChildItem -Recurse | Unblock-File
Once that is run, close the PowerShell session and open a new one and then try importing the module again.
Hi The nupkg file was dowloaded from internet and installed offline on our platform. Unblocking it before extracting resolved the problem. Thank you
I have the following issue with all versions > 23.2.1 (which works fine), unable to load the MilestonePSTools anymore...
import-module "MilestonePSTools" returns: ( Translated from French :) ) could not load file or assembly '...VideoOS.Platform.dll' or or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1
OS: WIndows 10 Desktop (French) Powershell Version: 5.1
before each upgrade, I remove the old "milestonePStools" and "MipSdkRedist" directories...
Any idea?