This lesson is part of the "TAMING GAM - A practical guide to GAM and GAMADV-XTD3" course.
This lesson walks you through the set up of GAMADV-XTD3 on a Windows 10 Virtual Machine. You can also load it directly on your Windows 10 machine by following along with either the video below, or by following the images and steps detailed below.
If you are trying to install GAM on another operating system, please refer to these articles:
GAMADV-XTD3 on Google Cloud Shell
Are you however trying to just upgrade your installation of GAM?
Let's get started.
If you would like to try it yourself, you can start here.
Let's download the installation of GAMADV-XTD3 from the GitHub Releases page.
At the time of recording this video, we installed GAMADV-XTD3 6.06.09.
Then run through the installation of your GAMADV-XTD3. Open the file you downloaded and click next all the way through. Make sure that you make a note of the path that you are installing in.
Then make sure that it has installed into the correct path in your C Drive.
When you install GAM, the default GAM configuration directory is C:\Users.gam.
To make it easier to work with multiple companies, you may want to change it to a non user-specific location. This example assumes that the GAM configuration directory will be C:\GAMConfig; If you've chosen another directory, substitute that value in the directions.
Make the C:\GAMConfig directory before completing the rest of the steps.
Another tip, to make your processing of commands easier, is to create a GAM working directory.
In this folder you will execute commands from this folder. You should not use C:\GAMADV-XTD3 or C:\GAMConfig for this purpose.
Make the C:\GAMWork directory before completing the rest of the steps.
Start Control Panel
Click System
Click Advanced system settings
Click Environment Variables
Click Path under System variables and Click Edit.
If C:\GAMADV-XTD3 is already on the Path, skip the next three steps
Click New
Enter C:\GAMADV-XTD3
Click OK
Click New
Set Variable name: GAMCFGDIR
Set Variable value: C:\GAMConfig
Click OK
Click OK
Click OK
Exit Control Panel
Open the command prompt and run this command to get into the GAMADV-XTD3 directory.
cd C:\GAMADV-XTD3
Then run this command to initialize GAM
gam config drive_dir C:\GAMWork verify
Once the previous command has run, run this command to verify that the GAM installation has initialised.
dir %GAMCFGDIR%
If you still have the command prompt open, then run the below command to create the GAM Project.
gam create project
Then add your Google Admin or GCP Project Manager account to the GAM command
Then, once it runs, copy the link from the command prompt and paste it into your browser.
Now that your OAuth Client has been created, copy your Client ID and Client Secret into the command prompt.
Now we need to create the OAuth connection.
gam oauth create
The APIs with the stars next to them are going to be enabled. Make a selection of what APIs you want and then click "c" to continue. And enter your admin email.
Press allow to enable the APIs
We now need to test that it has worked for a specific user.
gam user user@domain.com check serviceaccount
Copy the long URL for the authorisation and paste it into your browser.
Then click authorise.
Run the same command as before to test that it is authorised.
gam user user@domain.com check serviceaccount
Now run this to test that you are connected to your domain.
gam info domain
Congratulations, you are ready to run GAMADV-XTD3!
There are some other that are suggested that you can run.
gam config customer_id xxxx domain xxxx.com timezone local save verify
So that was an quick lesson on how to get GAM set up for your domain on Windows 10. If you would like more info on how to use GAM and GAMADV-XTD3 for your Google Workspace, please check out this full course of over 9 hours here.