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
0 Upvotes
85 Views
Subscribe
Replies (3)
Oldest First
Oldest First
Newest First
Marked SolutionPending Review
Participant
4 weeks ago
Marked SolutionPending Review
Copy link
Report
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?
0 Upvotes
Reply
Marked SolutionPending Review
Participant
4 weeks ago
Marked SolutionPending Review
Copy link
Report
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.
0 Upvotes
Reply
Marked SolutionPending Review
Hexnode Expert
4 weeks ago
Marked SolutionPending Review
Copy link
Report
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
0 Upvotes
Reply
-
Expand
Copy link
Report
Scroll to top