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

Save Windows Powershell agent installer to Task temp dir #475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanmil
Copy link
Contributor

@seanmil seanmil commented Aug 13, 2024

Without an explicit destination path specified, the download of install.ps1 is being written to the Windows system directory.

This adjusts the Task to obtain the path it is located in and save the install.ps1 download there.

Summary

I was unable to figure out why, but I observed that the agent_install.ps1 Task would consistently end up downloading the install.ps1 install script into C:\Windows\System32 instead of the temporary directory the Task was run from. This ensures the install script will be downloaded to the Task directory.

Without an explicit destination path specified, the download
of install.ps1 is being written to the Windows system directory.

This adjusts the Task to obtain the path it is located in and
save the install.ps1 download there.
@seanmil seanmil requested review from a team as code owners August 13, 2024 19:08
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.

1 participant