Install-GCPW
Description
Automates the installation and configuration of Google Credential Provider for Windows (GCPW).
Requirements
- Run as Administrator
- Version 5
Usage
- Checks if Google Chrome is installed. If not, it installs Google Chrome.
- Checks if GCPW is installed. If not, it installs GCPW.
- Sets the allowed domains for GCPW login by updating the registry.
- Optionally sets the enrollment token for GCPW by updating the registry.
- Performs verification steps to ensure the registry keys for domains and the enrollment token (if provided) are correctly set.
- Cleans up installation files and logs the installation process.
Examples
.\Install-GCPW.ps1 -DomainsAllowed "solarmora.com","altostrat.com"
Installs Google Chrome (if missing), GCPW (if missing), and configures it for the specified domains.
.\Install-GCPW.ps1 -DomainsAllowed "solarmora.com" -enrollmentToken "your_enrollment_token"
Installs Google Chrome (if missing), GCPW (if missing), and configures it for the specified domain, applying the 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
.\Install-GCPW-log.txt
.\Install-GCPW-error.txt