Hello,
Thank you for your question.
- Please try to give permission to gMSA account on Local Administrator group or Power users group to see if it works.
- Please try to put some logging mechanism so that you will able to see why its get timed out.
- Please try to run task scheduler Manually and see if it runs.
4 .Please disable any Antivirus or Firewall to see it they do not blocking connection.
--If the reply is helpful, please Upvote and Accept as answer--