This lesson is part of the "TAMING GAM7 - A practical guide to GAM7 and GAMADV-XTD3" course.
This lesson will guide you through setting up GAM7 on a Windows 11 Machine.
If you are trying to install GAM7 on another operating system, please refer to these articles:
GAMADV-XTD3 on Google Cloud Shell
Hey there, Google Workspace admins! Ready to manage your Google Workspace like a command-line hero? If you're tired of clicking through endless menus in the Admin console and want to perform powerful bulk operations, it's time to install GAM7.
GAM7 is the new official, unified version of GAM (Google Apps Manager), combining the best of standard GAM and GAMADV-XTD3 into one powerhouse tool.
But let's be honest, getting it set up on Windows can feel a little intimidating. Don't worry! This guide will walk you through every single step in a fun, relatable way. No condescending jargon, just a clear path to getting you up and running on Windows 11.
Let's get started!
Before we dive in, let's gather our supplies:
First, we need to grab the official GAM7 installer.
gam-7.xx.yy-windows-x86_64.msi.This is the easy part!
.msi file you just downloaded (usually in your Downloads folder).C:\GAM7, which is a great, simple path to use. We'll assume you're using this path for the rest of the guide.By default, GAM wants to store its important authorization files (like client_secrets.json and oauth2.txt) in a hidden folder in your user profile.
This is fine, but a "pro-tip" for easier management is to create a dedicated, easy-to-find folder for this.
C:\ drive and create a new folder named GAMConfig.Windows key and type "Environment Variables".GAMCFGDIRC:\GAMConfigImportant: You must restart your Command Prompt or PowerShell session for this change to take effect!
You need a "home base" for all your GAM-related files, like CSVs for bulk user uploads, scripts, and command outputs. Let's keep it separate from the program files.
C:\ drive, create another new folder named GAMWork.Let's make sure you can type gam from anywhere in Command Prompt without having to be in the C:\GAM7 folder.
Path variable, then click "Edit...".C:\GAM7.Now we run our very first GAM command. This command tells GAM where your config directory is and sets your new working directory as the default for file downloads and CSVs.
Open your new Command Prompt or PowerShell window and type:
gam config drive_dir C:\GAMWork verify
You'll see GAM7 spring to life, confirm its new configuration, and create your gam.cfg file inside C:\GAMConfig. You're officially installed!
You've installed GAM, but it can't do anything until you prove to Google that you're an admin and you give it permission.
GAM needs its own project in the Google Cloud console to keep track of API usage. Don't worry, GAM will create this for you.
In your command prompt, run:
gam create project
admin@yourdomain.com).GAM will finish setting up your project and save a file called client_secrets.json in your C:\GAMConfig folder.
Now you have to tell Google, "Yes, this project I just made is allowed to act as an admin."
In your command prompt, run:
gam oauth create
c and Enter to continue with the defaults.GAM will save your authorization in oauth2.txt (in C:\GAMConfig). You're almost there!
This is the final and most important auth step. This allows GAM to perform actions on behalf of your users (like reading their emails, changing their signatures, or transferring their Drive files).
In your command prompt, run (replacing normaluser@yourdomain.com with a normal user account):
gam user normaluser@yourdomain.com update serviceaccount
https://mail.google.com/, https://www.googleapis.com/auth/calendar, etc.).You did it. The installation and authorization are complete. To prove it, let's run your first real GAM command:
gam info domain
If everything worked, GAM will connect to your domain and print its information. Give yourself a pat on the back!
"orgUnitPath='/'" but in PowerShell, it might need to be "'orgUnitPath=/'"..msi installer from the GitHub releases page and run it. It will install right over the old version in C:\GAM7. Your configuration in C:\GAMConfig is safe!gam.cfg File: This file (in C:\GAMConfig) is your new best friend. You can edit it with Notepad to set defaults. For example, you can add your domain to save domain = yourdomain.com gam info user bob instead of gam info user bob@yourdomain.com.Q: What's the big deal with GAM7? How is it different from the GAM I was using?
A: GAM7 is the new, official version that merges "Standard GAM" (by Jay Lee) and "Advanced GAM / GAMADV-XTD3" (by Ross Scroggs). It gives all users the advanced feature set (like bulk CSV operations and complex queries) in one unified tool.
Q: Do I really need to be a Super Admin to use GAM?
A: You need Super Admin rights for the initial setup(creating the project and authorizing the service account). After setup, you can use GAM with a delegated admin role that has the specific API permissions you need.
Q: Help! I'm behind a corporate proxy!
A: GAM can handle that! You'll need to set a system environment variable in Windows called HTTPS_PROXY with your proxy's address (e.g., http://192.168.1.1:3128).
And that's it! You're ready to start automating your Google Workspace.