-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windowsExecutableCodeSignatureVerifier fails in PowerShell Constrained Language Mode #6917
Comments
And also did you know powershell is being maintained and updated by the minute? check it out: You can also download the newest version there and it's supposed to be awesome, I was too afraid to get it to avoid compatibility issues.. I did not how ever set the env variables I was too lazy sorry let me know if you want me to lol |
@burgil I think that |
I just realized that the problem is coming from If you are looking for a quick hack, check if that environment variable is set, and delete it during the update process using some hook there, and as soon as it finished updating check if it was removed and restore it in that case.. (you can like store it in a file if it was removed) Or you can like make a simply check that checks if that environement variable is there and if so it puts a message box saying But of course if anybody here can actually fix it yeah.. that will be the ultimate solution. I'm just a random guy here :) |
The environment variable is a way to set PowerShell in that mode for debugging purposes, but there are other ways to set it that can't be circumvented (like AppLocker or Group Policy Software Restriction settings). |
I've added a PR to address this: #7230 |
windowsExecutableCodeSignatureVerifier.ts is failing for some users with this error:
I believe this is due to PowerShell Constrained Language Mode: https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/
The text was updated successfully, but these errors were encountered: