-
Notifications
You must be signed in to change notification settings - Fork 6
gcpw_install.ps1
Corey Watson edited this page Dec 19, 2025
·
1 revision
Downloads, installs, and configures Google Credential Provider for Windows (GCPW).
Downloads, installs, and configures Google Credential Provider for Windows (GCPW). Sets allowed domains and enrollment token in the system registry.
Downloads, installs, and configures Google Credential Provider for Windows (GCPW). Sets allowed domains and enrollment token in the system registry.
- Windows 10/11 or Windows Server
- Administrator privileges
- Internet access
- Valid Google Workspace enrollment token
-
$domainsAllowedToLogin: Comma-separated list of allowed Google Workspace domains -
$enrollmentToken: GCPW enrollment token from Google Admin Console
- Validates administrative privileges
- Downloads GCPW installer (32-bit or 64-bit based on OS)
- Installs GCPW silently
- Configures allowed domains in registry
- Configures enrollment token in registry
- Enrollment token should be kept confidential
- Only listed domains will be allowed to login
- Requires elevated privileges
- 0 = Success
- 1 = Failure
- 5 = Configuration error (missing domains or not admin)
[ INPUT VALIDATION ]
--------------------------------------------------------------
Allowed Domains : example.com,corp.example.com
Enrollment Token : ********-****-****-****-************
[ DOWNLOADING GCPW ]
--------------------------------------------------------------
Architecture : 64-bit
Filename : gcpwstandaloneenterprise64.msi
Download : SUCCESS
[ INSTALLING GCPW ]
--------------------------------------------------------------
Installation : SUCCESS
[ CONFIGURING REGISTRY ]
--------------------------------------------------------------
Domains : Configured
Enrollment Token : Configured
[ FINAL STATUS ]
--------------------------------------------------------------
SCRIPT SUCCEEDED
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps (sanitized)
- View Script Source
- Scripts - Back to script index