Hey everyone! I’ve been trying to get Google Drive installed on my Macs enrolled in Hexnode UEM using some scripts, but nothing’s working. I’m kind of stuck. Any ideas?
Install Google Drive on Macs using custom scriptSolved
121 Views
Replies (3)
Hey @marien! You might want to check out the install application remote action as well as the required apps policy in Hexnode. Instead of fiddling with scripts, why not use those features to install Google Drive on your Macs?
Thanks for the suggestions, @wilma! Those methods sound great, but I’m hoping to use scripts for this installation. It gives me the flexibility to modify the process later for other apps if needed.
Hey @marien! @wilma made a good suggestion. Since you’re set on using a custom script, I’m here to help! Here’s a script that should do the trick:
Install Google Drive
1 2 3 4 5 6 7 8 9 |
mkdir "/tmp/googledrive" cd "/tmp/googledrive" curl -L -o "/tmp/googledrive/GoogleDrive.dmg" "https://dl.google.com/drive-file-stream/GoogleDrive.dmg" hdiutil mount GoogleDrive.dmg Volume=$(diskutil info / | grep "Volume Name:" | awk '{print $3,$4,$5,$6}') installer -pkg /Volumes/Install\ Google\ Drive/GoogleDrive.pkg -target / hdiutil unmount "/Volumes/Install Google Drive" rm -rf "/tmp/googledrive" exit |
You can run this through the Execute Custom Script remote action. Let me know if you have any doubts!
Cheers,
Ben Clarke
Hexnode UEM
Save