ERROR: [Errno 22] Invalid argument: 'G:\\Google Shared Drive\\oauth2.txt.lock'

22 views
Skip to first unread message

Support - PC Dom

unread,
Feb 8, 2026, 8:15:01 PM (13 days ago) Feb 8
to GAM for Google Workspace
Hi Ross,

I'm getting below error message when running command like: 

gam all users delete message query "rfc822msgid:<Mail ID>" doit

ERROR: [Errno 22] Invalid argument: 'G:\\Google Shared Drive\\oauth2.txt.lock'

The GAM is on a GDrive Shared Drive. We don't have any problems before when running the command until today. Thank you Ross!

Jay Lee

unread,
Feb 8, 2026, 8:46:01 PM (13 days ago) Feb 8
to google-ap...@googlegroups.com
Put GAM on a real, local drive.


Jay Lee

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/e0cd784a-16b3-44c7-9699-c5131860626fn%40googlegroups.com.

Support - PC Dom

unread,
Feb 8, 2026, 10:14:20 PM (12 days ago) Feb 8
to GAM for Google Workspace
This was working before even it is saved on GDrive shared folder.

Support - PC Dom

unread,
Feb 8, 2026, 10:15:36 PM (12 days ago) Feb 8
to GAM for Google Workspace
Environmental Variables settings on Windows was not changed, still pointing on the GDrive Shared folder.

Ross Scroggs

unread,
Feb 9, 2026, 10:42:07 AM (12 days ago) Feb 9
to google-ap...@googlegroups.com
I'm in California (GMT-8 PST), send me a private Meet/Zoom invitation if you srill need help.

Ross
----
Ross Scroggs



Reply all
Reply to author
Forward
0 new messages