Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

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

  1. Check if Google Chrome is installed. If not, install Google Chrome.
  2. Check if GCPW is installed. If not, install GCPW.
  3. Set the allowed domains for GCPW login by updating the registry.
  4. Optionally set the enrollment token for GCPW by updating the registry.
  5. Perform verification steps to ensure the registry keys for domains and the enrollment token (if provided) are correctly set.
  6. 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

ParameterAliasRequiredDefaultTypeDescription
-DomainsAllowedTrueStringDomain(s) users are allowed to sign in from.
-enrollmentTokenFalseStringSet 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

PayloadPath
Automate
ConnectWise RMM
KaseyaInstall Google Credential Provider for Windows (GCPW)
Datto RMM