microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
637 stars 213 forks source link

Edge Failing to Download #92

Closed kingpocket closed 1 year ago

kingpocket commented 1 year ago

If I manually browse to the URL in the script, Edge successfully downloads, but it keeps failing from the script.

##############################################################

Fri Feb 10 10:42:23 EST 2023 | Logging install of [Microsoft Edge] to [/Library/Logs/Microsoft/IntuneScripts/installEdge/Microsoft Edge.log]

############################################################

Fri Feb 10 10:42:23 EST 2023 | Checking if we need Rosetta 2 or not Fri Feb 10 10:42:23 EST 2023 | Waiting for other [/usr/sbin/softwareupdate] processes to end Fri Feb 10 10:42:23 EST 2023 | No instances of [/usr/sbin/softwareupdate] found, safe to proceed Fri Feb 10 10:42:23 EST 2023 | Rosetta is already installed and running. Nothing to do. Fri Feb 10 10:42:23 EST 2023 | Checking if we need to install or update [Microsoft Edge] Fri Feb 10 10:42:23 EST 2023 | [Microsoft Edge] not installed, need to download and install Fri Feb 10 10:42:23 EST 2023 | Dock is here, lets carry on Fri Feb 10 10:42:23 EST 2023 | Starting downlading of [Microsoft Edge] Fri Feb 10 10:42:23 EST 2023 | Waiting for other [curl -f] processes to end Fri Feb 10 10:42:23 EST 2023 | No instances of [curl -f] found, safe to proceed Fri Feb 10 10:42:23 EST 2023 | Downloading Microsoft Edge Fri Feb 10 10:42:23 EST 2023 | Failure to download [https://go.microsoft.com/fwlink/?linkid=2093504] to []

MarkHowe86 commented 1 year ago

I am also experiencing this. I have even tried different download links but same issue. Do we have fix?

theneiljohnson commented 1 year ago

Looks like curl was failing to generate a local file name for the download. I've attempted to fix by setting it manually. Seems to work for me, but please test and let me know.

kingpocket commented 1 year ago

It just worked for me. Thank you!