Open ivassallo19 opened 2 months ago
Thanks for opening an issue on this.
Looking into this Start-BitsTransfer
was used over Webclient
for Get-OPAFile
because it included a download progress bar for user feedback.
An idea on our end as an enhancement is to use Webclient
as a failsafe for when Start-BitsTransfer
fails.
Given that, another idea is to use Invoke-WebRequest
, as this does include a progress bar, albeit without a total bytes or percent complete
🐛 Summary
Within Get-OPAFile you use Start-BitsTransfer, but I run ScubaGear under a different account than my main login, as it has admin privileges, and BITS is prevented unless the session is logged in. Should change it to use WebClient as you have done within Get-ExeHash
To reproduce
Steps to reproduce the behavior:
Expected behavior
OPA download succeeds
Any helpful log output or screenshots
Paste the results here:
Manually attempting BITS:
Add any screenshots of the problem here.