After switching the service account to a gMSA all works as expected but we get the event ID 514 : "'The following error occured calling 'Directory.Delete' on the path 'C:\Users\gmsa-gpoadmin$\AppData\Local\Temp\Avalanche\776c7a771596467287cfdbf129071332\{65F09C9B-E8D8-48AB-8751-49CF3FB1733F}': Could not find a part of the path 'C:\Users\gmsa-gpoadmin$\AppData\Local\Temp\Avalanche\776c7a7...\{65F09C9B--...}'."
The event ID 514 error related to the service account configured as a gMSA in GPOAdmin, indicating that it could not find a part of the path in the temporary directory, can be resolved by ensuring that the gMSA has the necessary permissions to access the directory in question.
Here are the steps you can take:
1. Verify Permissions: Ensure that the gMSA has the appropriate permissions on the temporary directory being accessed by GPOAdmin. This includes permissions to read, write, and modify files in that directory.
2. Check Locking Issues: The error may arise if another process is locking the directory or file. Ensure that no other applications are accessing the same temporary directory simultaneously.
3. Access Control List (ACL) Settings: Check the ACL settings of the temporary directory to make sure that the gMSA is granted access. You may need to modify the permissions to include the gMSA.
4. Directory Existence: Confirm that the temporary directory actually exists. If it does not, you may need to create it or point GPOAdmin to a valid directory.
5. Service Restart: After making any changes to permissions or configurations, restart the GPOAdmin service to apply the changes.