microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
696 stars 224 forks source link

Citrix Workspace Fails to download #160

Open kingpocket opened 3 weeks ago

kingpocket commented 3 weeks ago

I've been using this script successfully for over a year, but downloads have been failing since yesterday.

https://github.com/microsoft/shell-intune-samples/blob/master/macOS/Apps/Citrix%20Workspace/installICitrixWorkspace.sh

[/Library/Logs/Microsoft/IntuneScripts/Citrix Workspace] to store logs

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

Wed Oct 9 11:15:23 EDT 2024 | Logging install of [Citrix Workspace] to [/Library/Logs/Microsoft/IntuneScripts/Citrix Workspace/Citrix Workspace.log]

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

Wed Oct 9 11:15:23 EDT 2024 | Checking if we need to install or update [Citrix Workspace] Wed Oct 9 11:15:23 EDT 2024 | [Citrix Workspace] not installed, need to download and install Wed Oct 9 11:15:23 EDT 2024 | Dock is here, lets carry on Wed Oct 9 11:15:23 EDT 2024 | Starting downlading of [Citrix Workspace] Wed Oct 9 11:15:23 EDT 2024 | Waiting for other [curl -f] processes to end Wed Oct 9 11:15:23 EDT 2024 | No instances of [curl -f] found, safe to proceed Wed Oct 9 11:15:23 EDT 2024 | Downloading Citrix Workspace [https:] Wed Oct 9 11:15:23 EDT 2024 | Failure to download [https:] to []

schoebelh commented 2 days ago

Exactly the same here :-/

schoebelh commented 2 days ago

Adding browser agent string as quick fix does the job for me...

latestver=curl -s -L https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external | grep "<h1>Citrix " | awk '{print $4}'

< latestver=curl -s -A "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15" -L https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external | grep "<h1>Citrix " | awk '{print $4}'

url2=curl -s -L https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external | grep dmg | sed -n 's/.*rel="//;s/".*//p' | head -n2 | tail -n1

< url2=curl -s -A "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15" -L https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html#ctx-dl-eula-external | grep dmg | sed -n 's/.*rel="//;s/".*//p' | head -n2 | tail -n1