Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Set bypass executionpolicy when calling PowerShell#715

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SteveL-MSFT merged 2 commits intoPowerShell:mainfromSteveL-MSFT:executionpolicy
Apr 4, 2025

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

Windows Client machines have restricted execution policy by default, so that doesn't allow scripts (signed or not) to run which cases the PowerShell adapter to fail unless the user explicitly changes their execution policy. Instead, since DSC already sets the working directory to the location of the resource manifest, we can be assured that the intended adapter script gets run. Fix is to explicitly set execution policy tobypass, which won't override Group Policy.

PR Context

Fix#714

@SteveL-MSFTSteveL-MSFT added this pull request to themerge queueApr 4, 2025
Merged via the queue intoPowerShell:main with commit82295d4Apr 4, 2025
4 checks passed
@SteveL-MSFTSteveL-MSFT deleted the executionpolicy branchApril 4, 2025 22:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@adityapatwardhanadityapatwardhanadityapatwardhan approved these changes

@tgauthtgauthAwaiting requested review from tgauth

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

dsc resource list with--adapter flag returns with Exit code 1
2 participants
@SteveL-MSFT@adityapatwardhan

[8]ページ先頭

©2009-2025 Movatter.jp