Closed rpmrmartin closed 4 years ago
Hi @rpmrmartin. That's an odd error. Did you install the module via Install-Module
or a direct download and extract?
There have been issues similar to this one previously on manually extracted installations because of a Windows feature that tags files downloaded from browsers with metadata that flags them as potentially unsafe. But usually that only affects loading types from the BouncyCastle library.
Can you also double check that in the module's folder, there's a Private
folder with a file called AcmeException.ps1
?
Last question. Do you know whether your PowerShell session is running in Constrained Language Mode or Just Enough Administration (JEA) mode? It looks like you can check by running $ExecutionContext.SessionState.LanguageMode
.
Hi @rmbolger,
I installed the module via Install-Module
. The PowerShell session was not running in Constrained Language Mode or Just Enough Administration mode.
Your module worked for me using PowerShell Core 6, so I was able to get my scripting done using that. After some re-installations, Windows PowerShell isn't giving me any problems either, so I guess that the module probably didn't get installed properly on Windows PowerShell. Thank you for your help.
No worries. Glad you got it sorted out.
Thank you for writing this great PowerShell module.
I am trying to run a pretty simple example:
Here is the output:
I am using Windows PowerShell 5.1 on Windows 10 1809 with .NET Framework 4.8.