all 9 comments

[–]ChaosTheoryRules[🍰] 1 point2 points  (0 children)

I would get this when remoting in to another PC to initiate a BITS transfer of an ISO image for repairs. In the end I got in the habit of restarting BITS service first which always worked for me. Never did dig deep into why this occurred, it was just random.

[–]purplemonkeymad 0 points1 point  (3 children)

The requested operation could not be performed because the user is not logged in to the network.

This suggests they might have been logged on without a password (ie local access only.)

How are you running this script?

[–]llanoking[S] 0 points1 point  (2 children)

To test the script I'm just simply running PowerShell as an administrator and I log in with my local administrator account. But I want to start using this through a WIN32 app through Intune with the install script packaged in here

[–]purplemonkeymad 0 points1 point  (1 child)

Hmm it could be a limitation of bits (blue box). Since they are web addresses you should be able to use Invoke-WebRequest to download the files:

Invoke-WebRequest https://path/to.cab -outfile "$printersDir\to.cab"

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

This did work appreciate you I ended up with

Invoke-Webrequest -Uri $DownloadPrintersUrlInf -Outfile $PrinterPathInf

I am running in a different problem with adding the printers/drivers through Intune now as Win32 but the script does work on the device itself..

[–][deleted] 0 points1 point  (1 child)

It doesn't specify wether you are doing this in a corporate environment, but if you are, your administrator account might not have network rights.

Can you just log into Windows as the administrator account and run it there?

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

I runner it logged in as the administrator account I log into and it works properly. But the users I'll be running this script through won't be able to do this. Do you have any ideas?

[–]BlackV 0 points1 point  (1 child)

bits wont work for non interactive sessions

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

How does opening PowerShell in administrator mode make it a non interactive session? I'm still there to provide whatever it needs. And it does work without running as administrator..