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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from BITS to WebClient #1077

Open
ivassallo19 opened this issue Apr 23, 2024 · 2 comments
Open

Change from BITS to WebClient #1077

ivassallo19 opened this issue Apr 23, 2024 · 2 comments
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool.
Milestone

Comments

@ivassallo19
Copy link

馃悰 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:

  1. Initialize-SCuBA

Expected behavior

OPA download succeeds

Any helpful log output or screenshots

Paste the results here:

Manually attempting BITS:

Start-BitsTransfer : The operation being requested was not performed because the user has not logged on to the network

Add any screenshots of the problem here.

@buidav buidav added the public-reported This issue is reported by the public users of the tool. label Apr 23, 2024
@buidav
Copy link
Collaborator

buidav commented Apr 24, 2024

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.

@ivassallo19
Copy link
Author

Given that, another idea is to use Invoke-WebRequest, as this does include a progress bar, albeit without a total bytes or percent complete

@schrolla schrolla added the bug This issue or pull request addresses broken functionality label Apr 29, 2024
@schrolla schrolla added this to the Backlog milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool.
Projects
None yet
Development

No branches or pull requests

3 participants