-
Notifications
You must be signed in to change notification settings - Fork 235
PackageManagement module fails to update when using AppLocker #1278
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
Comments
@johlju do you have any policies set up for PackageManagement or PowerShell built-in modules or signatures? Also, what version of PowerShellGet are you using? |
Yes, we allow running the modules under
PowerShellGet has not been replaced with a newer one, still the one that came with Windows 10 I guess.
I saw now that it do indeed try to update to the scope
|
I have a "fix" out for this that doesn't run a command on your behalf because apparently PackageManagement doesn't play well in CLM... There's also a setting to disable this warning already... though, keep in mind, you're using a version of PackageManagement that could lock up the PowerShell extension if you don't update it... |
Then I suggest we close this issue once that PR is through. We can distribute the module (PackageManagement and PowerShellGet) centrally, for example together with the deployment of VS Code (for PowerShell dev stations). |
The preview extension asks to replace the PackageManagement module which throws an error when using AppLocker (ConstrainedLanguage mode).
Originally posted by @johlju in #1221 (comment)
The text was updated successfully, but these errors were encountered: