Download and install Google Drive desktop client for cloud file sync on macOS endpoints
This Automox Worklet™ automates the download and installation of the Google Drive desktop application on macOS endpoints. Google Drive for desktop provides file streaming and synchronization, allowing users to access their Google Drive files directly through the macOS Finder without storing everything locally.
The installation process downloads the DMG from the Automox software cache, mounts it, runs the PKG installer, and cleans up temporary files. The Worklet also provides an optional configuration to remove Google Docs, Sheets, and Slides applications that install alongside Drive if you prefer users access these through the web.
Organizations using Google Workspace face deployment challenges when users manually install Google Drive with inconsistent versions, configurations, or fail to install it at all. Manual installation processes require user action, introduce version drift across the fleet, and leave some endpoints without critical cloud storage integration that impacts collaboration and file access. This Automox Worklet eliminates these inconsistencies by deploying Google Drive silently and uniformly across all macOS endpoints regardless of user session state, providing standardized Google Workspace integration with optional control over companion apps like Docs, Sheets, and Slides.
Evaluation phase: The Worklet checks if /Applications/Google Drive.app exists on the endpoint. If Drive is present, the endpoint is compliant. If Drive is missing, the evaluation triggers remediation.
Remediation phase: The script downloads GoogleDrive.dmg from api.automox.com, mounts the disk image, runs the PKG installer targeting the root volume. If RemoveGoogleApps is set to YES, it removes Google Sheets, Docs, and Slides from /Applications. Finally, it verifies installation and reports the installed version.
macOS 10.14 (Mojave) or later
Intel or Apple Silicon processor
Network access to api.automox.com
Google Workspace account for user sign-in after installation
Optional: Set RemoveGoogleApps=YES to remove Docs, Sheets, and Slides apps
After successful remediation, you can expect these specific outcomes:
Google Drive.app will be installed at /Applications/Google Drive.app
Users will see Google Drive in Finder's sidebar after launching the app and signing in
Files will stream on demand by default, downloading locally only when opened
You can verify installation using ls -la /Applications/Google\ Drive.app
If RemoveGoogleApps=YES, Google Docs, Sheets, and Slides will not appear in /Applications
Run this Worklet on a pilot macOS endpoint and review evaluation output for install google drive.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as exit, else.
Validate remediation effects from script operations such as function, curl, yes, then rerun evaluation for compliance.
For technical validation, compare endpoint state to the Worklet evaluation logic and remediation flow for install google drive. This supports repeatable software lifecycle workflows, faster change control review, and auditable compliance evidence.
Useful script references for this Worklet include evaluation operations such as exit, else and remediation operations such as function, curl, yes. Use these indicators to verify that endpoint changes match intended policy outcomes.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy