kherge/rs.aws-login

Document managing ExecutionPolicy for PowerShell profile scripts.

Opened this issue · 0 comments

The following checks have been done.

  • I could not find another enhancement request that covers what I need.
  • This request does not cover existing functionality.

What existing feature needs to be enhanced?

The documentation for integrating into PowerShell.

What problem is being solved?

Some PowerShell configurations may have their ExecutionPolicy undefined which prevents the integration script from being loaded.

How would you like to see this problem solved?

Update the documentation to help PowerShell users that get caught by this issue.

  1. Check what the ExecutionPolicy is for CurrentUser.
    Get-ExecutionPolicy -List
  2. Allow local scripts to be executed.
    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

Some additional context.

This appears to be a Windows specific issue beginning with PowerShell 6.0 (see -ExecutionPolicy documentation).