-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Change hard coded execution policy in power shell task #15254
Comments
Is there any progress on this issue? or should I submit a pr to add the inputs? |
Hi @WenceyWang sorry for the delay - we are currently working on more prioritized tickets at the moment, but will get back to this one once be able to. Yes, feel free to submit the PR if you would like to contribute, thanks! |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Currently we had to deploy all of our powershell scripts to all build servers as a workaround. If we could have an update on this it would be nice. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Currently we had to deploy all of our powershell scripts to all build servers as a workaround. If we could have an update on this it would be nice. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
If we could have an update on this it would be nice. |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Can we have an update please? |
Question, Bug, or Feature?
Type: Question
Enter Task Name: PowerShellV2
Environment
Server - Azure Pipelines or TFS on-premises? TFS on premises
Agent - Hosted or Private: Private
Issue Description
We have a need to move all of our powershell scripts to a different server than the build server. We want to execute them from that new server. The script path is set to this
\builddev\Shared\PowerShell\COVReactInstall.ps1
We are getting UnauthorizedAccess errors now .
We found out that the issue is that this powershell task hard codes the execution policy to Unrestricted
$arguments = "-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command
"$executionOperator '$($filePath.Replace("'", "''"))'
""We would like to change it to ByPass.
How can this be done? We didn't see a way to pass in powershell arguments to this task
Thank you
Fabian
The text was updated successfully, but these errors were encountered: