Execute PowerShell Script from Scheduled Task with GMSA

Chetan Dev 26 Reputation points
2020-05-01T15:22:49.133+00:00

Hello Everyone,

We have number of PowerShell scripts running with scheduled task in our environment and these tasks are running with different service as per required Privilegs.

We want to take the advantage of GMSA accounts to execute these scheduled task and good news, scheduled tasks are configured with GMSA account and tasks are being launched by GMSA account.

Here comes the issue, BUT GMSA credentials are not being delegated to the PowerShell script, we have Invoke-command and Get-WMI Object command in Powershell Script.

Thanks in advance... Happy Weekend...Be Safe

Regards
Chetan

"it always seems impossible until it is done"

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,947 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Suman Bhowmik 76 Reputation points
    2020-11-26T14:36:15.2+00:00

    Hi,
    You need to make sure that the gMSA account has sufficient permission on the destination to execute required commands.

    0 comments No comments