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

Handle exceptions when calling Set-ExecutionPolicy #386

Merged
merged 1 commit into from Mar 16, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented 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 #192.
Resolves PowerShell/vscode-powershell#454.

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.
@daviwil daviwil added this to the 0.10.1 milestone Mar 16, 2017
@daviwil daviwil merged commit f04fc5f into PowerShell:develop Mar 16, 2017
@daviwil daviwil deleted the fix-192 branch March 16, 2017 17:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants