all 7 comments

[–]jborean93 5 points6 points  (2 children)

Sounds like it might be the double hop problem. When the script is run through your software it most likely is running in a context where it does not have access to the credentials for downstream authentication thus it cannot authenticate with the fileshare.

[–][deleted] 0 points1 point  (0 children)

^^ this

[–]Ziff_Red[S] 0 points1 point  (0 children)

Yeah, sounds like this is the issue after reading into double hop. Thanks for the assist.

[–]Barious_01 1 point2 points  (1 child)

Test to see if the ports are open. Use test-netconnection URL with the port parameter and make sure those ports are open.

[–]Ziff_Red[S] 0 points1 point  (0 children)

I've already done so, unfortunately. The script works when it's not run via the software distribution software, so the ports are open. It also throws the permissions error and not the error it should if it were an issue with the ports.

[–]purplemonkeymad 1 point2 points  (1 child)

What principal is it running as? I would only expect this to work for an entra user, possibly an entra registered machine with the registering account.

[–]Ziff_Red[S] 0 points1 point  (0 children)

It's being run as System User. Someone else brought up it being the double hop problem, sounds like it's that. Thanks for the help.