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

GPO which sets "Bypass" execution policy causes extension to fail startup. #454

Closed
cobdev opened this issue Jan 20, 2017 · 3 comments
Closed
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@cobdev
Copy link

cobdev commented Jan 20, 2017

Please fill in these details so that we can help you!

System Details

  • Operating system name and version: Windows 10 CBB v1607
  • VS Code version: 1.8.1
  • PowerShell extension version: 0.9.0
  • Output from $PSVersionTable:
    Name Value

PSVersion 5.1.14393.576
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.576
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

"PowerShell could not be started, click 'Show Logs' for more details."

CapturedLogFiles.zip

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

@daviwil
Copy link
Contributor

daviwil commented Jan 20, 2017

Thanks for the report! I'll get this fixed for the patch update next week.

@daviwil daviwil added the Issue-Bug A bug to squash. label Jan 20, 2017
@daviwil daviwil added this to the 0.9.1 milestone Jan 20, 2017
@daviwil
Copy link
Contributor

daviwil commented Jan 20, 2017

@ftischhauser originally reported this in issue #119 so I'm sure he'll want to know when it's fixed.

@cobdev
Copy link
Author

cobdev commented Jan 20, 2017 via email

@daviwil daviwil modified the milestones: 0.9.1, 0.10.1 Mar 14, 2017
daviwil added a commit to daviwil/PowerShellEditorServices that referenced this issue Mar 16, 2017
This change adds a try/catch around our invocation of Set-ExecutionPolicy
to catch a CmdletInvocationException if a global ExecutionPolicy has
already been set on the machine.

Resolves PowerShell#192.
Resolves PowerShell/vscode-powershell#454.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

2 participants