Skip to content

fix: windows ExecutionPolicy in wrapper#701

Merged
gabriel-samfira merged 1 commit intocloudbase:mainfrom
brandonkal:fix-windows-wrapper
Apr 3, 2026
Merged

fix: windows ExecutionPolicy in wrapper#701
gabriel-samfira merged 1 commit intocloudbase:mainfrom
brandonkal:fix-windows-wrapper

Conversation

@brandonkal
Copy link
Copy Markdown
Contributor

Summary

Previously, this userdata wrapper could fail when Set-ExecutionPolicy was run in an environment where the effective policy was already more permissive.

Change

Use:

Set-ExecutionPolicy RemoteSigned -Force -ErrorAction SilentlyContinue

instead of a plain Set-ExecutionPolicy RemoteSigned.

Why

This avoids the warning/error path that could stop userdata execution before the install script runs.

Copy link
Copy Markdown
Member

@gabriel-samfira gabriel-samfira left a comment

Choose a reason for hiding this comment

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

Thank you!

@gabriel-samfira gabriel-samfira merged commit 30f1069 into cloudbase:main Apr 3, 2026
4 checks passed
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.

2 participants