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

BITS transfer -Dynamic flag over App Proxy #181

Open
LOldfield opened this issue Sep 18, 2024 · 2 comments
Open

BITS transfer -Dynamic flag over App Proxy #181

LOldfield opened this issue Sep 18, 2024 · 2 comments

Comments

@LOldfield
Copy link

To make my PSD setup accessible from off-premise, I've proxied it using EntraID/Azure App Proxy by installing the agent on the server, configuring an application

To start with this worked perfectly, the WinPE client connects and validated without issue.

When it booted into Windows 10 and reached a powershell script containing "Get-PSDContent" I discovered that the files were enumerating, but transferring no data. All appeared as 0 bytes in explorer, meaning the RMM I was trying to pull did not install.

After some tinkering I discovered that adding the "-Dynamic" flag to Start-BitsTransfer:
Start-BitsTansfer $url -Authenticaion Ntlm -Credential (get-credential) -TransferType Download -Dynamic
Downloaded the folder fully.

Adding the -Dynamic flag to line 416 of the PSDDeploymentShare.psm1 file and rebuilding the ISO gets it working. I'm not sure what other implications this might have e.g in WinPE though. Aware that this is likely more a server than client issue, posting for awareness.

@mtniehaus
Copy link
Member

mtniehaus commented Sep 18, 2024 via email

@LOldfield
Copy link
Author

Sorry should have mentioned, hosted on-premise, standard Windows server IIS. Internally, on the LAN, the Dynamic flag is not required, which is what makes me think the App Proxy is introducing this byte-range issue.
image
I wonder if the rate limiting has anything to do with this - maybe an attempt to dissuade large downloads

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

No branches or pull requests

2 participants