Skip to content

Set -ExecutionPolicy Bypass on PowerShell script execution#11

Merged
zenflow merged 1 commit intozenflow:masterfrom
kazarmy:ExecutionPolicy-Bypass
Jun 28, 2025
Merged

Set -ExecutionPolicy Bypass on PowerShell script execution#11
zenflow merged 1 commit intozenflow:masterfrom
kazarmy:ExecutionPolicy-Bypass

Conversation

@kazarmy
Copy link
Copy Markdown
Contributor

@kazarmy kazarmy commented Jun 28, 2025

This PR sets -ExecutionPolicy Bypass when executing the PowerShell script of generate-ctrl-event.ps1. This is because the default execution policy (Undefined, which is equivalent to Restricted on Windows clients) prevents script execution.

Copy link
Copy Markdown
Owner

@zenflow zenflow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kazarmy I don't see any issue with this

I wonder though why this wasn't needed before, like 4 years ago when I authored and tested..
Some breaking change in powershell.exe I guess?

@zenflow zenflow merged commit 12fd120 into zenflow:master Jun 28, 2025
1 check passed
github-actions Bot pushed a commit that referenced this pull request Jun 28, 2025
## [2.0.2](v2.0.1...v2.0.2) (2025-06-28)

### Bug Fixes

* Set `-ExecutionPolicy Bypass` on PowerShell script execution ([#11](#11)) ([12fd120](12fd120))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kazarmy
Copy link
Copy Markdown
Contributor Author

kazarmy commented Jun 28, 2025

I wonder though why this wasn't needed before, like 4 years ago when I authored and tested..
Some breaking change in powershell.exe I guess?

Apparently the default execution policy was Unrestricted at some point, according to this 2021 article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants