Skip to content
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

Clarify PowerShell policy #7

Open
mcandre opened this issue Sep 1, 2021 · 0 comments
Open

Clarify PowerShell policy #7

mcandre opened this issue Sep 1, 2021 · 0 comments

Comments

@mcandre
Copy link

mcandre commented Sep 1, 2021

Microsoft has changed the default PowerShell policy. The following requirements are now in effect:

  • The execution policy must be opened up to at least RemoteSigned level, especially for typical desktop/laptop Windows envionments.
  • Execution policy changes must be done in an elevated PowerShell context.
  • PowerShell module installation must be done in an elevated PowerShell context.

Example:

  1. Launch PowerShell in administrative mode.
  2. Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  3. Run Install-Module -Name posh-direnv

Reference:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.1

Could we update the README to reflect more of these relevant installation details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant