I have a powershell script set to reset a group of users passwords daily, when running the script directly (right click and Run with Powershell) it works. When this is run from task scheduler it fails giving the error message
FAILED:
user...@domain.com - GAM Exit Code 16. Output: WARNING: Config File: C:\Users\Administrator\.gam\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\Users\Administrator\.gam\oauth2.txt, Not Found WARNING: Config File: C:\Users\Administrator\.gam\gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: C:\Users\Administrator\.gam\oauth2service.json, Not Found System.Management.Automation.RemoteException ERROR: No Client Access allowed
The powershell script is attached.
From the research I have done it looks like the error "System.Management.Automation.RemoteException" is generated from powershell and not from GAM, has anyone else encountered such issues when running powershell scripts to perform tasks?
If you have an urgent safeguarding concern please contact the out of hours MASH team on 0300 4564546
Otherwise, please allow 24 hours (week days only) for a reply in order for us to process your query.
--
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/18f06a5f-f583-43d3-89b9-ed1789a6c81fn%40googlegroups.com.
<Password_Reset.txt>