Overview
This document automates the installation and configuration of the Google Credential Provider for Windows (GCPW). It sets the domains allowed for login and optionally configures an enrollment token. Enrollment tokens can be found in the Google Admin console under: Menu > Devices > Mobile and endpoints > Settings > Windows settings.
Requirements
- PowerShell v5 or higher
- Administrative privileges are required for execution
Process
- Check if Google Chrome is installed. If not, install Google Chrome.
- Check if GCPW is installed. If not, install GCPW.
- Set the allowed domains for GCPW login by updating the registry.
- Optionally set the enrollment token for GCPW by updating the registry.
- Perform verification steps to ensure the registry keys for domains and the enrollment token (if provided) are correctly set.
- Clean up installation files and log the installation process.
Payload Usage
To install Google Chrome (if missing), GCPW (if missing), and configure it for the specified domains, use the following command:
./Install-GCPW.ps1 -DomainsAllowed "solarmora.com","altostrat.com"
To install Google Chrome (if missing), GCPW (if missing), configure it for the specified domain, and apply the enrollment token, use the following command:
./Install-GCPW.ps1 -DomainsAllowed "solarmora.com" -enrollmentToken "your_enrollment_token"
Parameters
| Parameter | Alias | Required | Default | Type | Description |
|---|---|---|---|---|---|
-DomainsAllowed | True | String | Domain(s) users are allowed to sign in from. | ||
-enrollmentToken | False | String | Set token to manage GCPW from the Admin console. |
Output
The location of output for log, result, and error files is as follows:
./Install-GCPW-log.txt
./Install-GCPW-error.txt
Locations
| Payload | Path |
|---|---|
| Automate | |
| ConnectWise RMM | |
| Kaseya | Install Google Credential Provider for Windows (GCPW) |
| Datto RMM |