question

DavidHood-5810 avatar image
0 Votes"
DavidHood-5810 asked LimitlessTechnology-2700 answered

How to run a disk space script against remote computers using GMSA account

I have a .vbs script that has been around for 10+ years to query all my remote servers using WMI and gets disk space information. It is ran with a Scheduled task on my file server and now I have a need to use a more secure account to run all of my scheduled tasks across my servers.
I have a gMSA setup and have started changing these tasks to run with this account, but the disk space report will not complete and times out. It usually only takes 30 seconds to 1 minute to complete.

What would I need to do in order for this task to work with a gMSA? I was thinking that I would need to add the new gMSA to a security group on each server to do this corretly.
I am open to using Powershell if that would work better since the VB script is very old.
Thanks,

windows-serverwindows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello,

Thank you for your question.

  1. Please try to give permission to gMSA account on Local Administrator group or Power users group to see if it works.

  2. Please try to put some logging mechanism so that you will able to see why its get timed out.

  3. 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--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.