Skip to main content

Overview

This agent procedure automates the installation and configuration of Google Credential Provider for Windows (GCPW). The procedure 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 (the procedure runs as System)

Process

  1. Checks if Google Chrome is installed. If not, it installs Google Chrome.
  2. Checks if GCPW is installed. If not, it installs GCPW.
  3. Sets the allowed domains for GCPW login by updating the registry.
  4. Optionally sets the enrollment token for GCPW by updating the registry.
  5. Performs verification steps to ensure the registry keys for domains and the enrollment token (if provided) are correctly set.
  6. Cleans up installation files and logs the installation process.

Kaseya Implementation

Procedure Name: Google Credential Provider for Windows (GCPW) - Install

Image

This procedure uses two variables.

Image

VariableRequiredDefaultDescription
DomainsAllowedTrueSpecifies the domain(s) users are allowed to log in from. Accepts single domains or multiple domains.
EnrollmentTokenFalse0Sets the enrollment token to manage GCPW from the Google Admin console. Leave at 0 to skip this step.

Example of a single domain: "solarmora.com"

Example of multiple domains: "solarmora.com", "altostrat.com"

Enrollment tokens can be found in the Google Admin console under: Menu > Devices > Mobile and endpoints > Settings > Windows settings

Output

Location of output for log, result, and error files.

Agent Procedure Log
%ProgramData%/_automation/AgentProcedure/InstallGCPW/Install-GCPW-log.txt
%ProgramData%/_automation/AgentProcedure/InstallGCPW/Install-GCPW-error.txt