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

David Hood 41 Reputation points
2021-10-01T19:26:46.46+00:00

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 Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,118 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2021-10-05T09:34:04.087+00:00

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

    0 comments No comments