How to use gMSA account with Powershell? RRS feed

  • Question

  • Hi guys!

    Can i use gMSA with a Powershell Session? I would like to create a script with this format:

    $Username = 'Domain\GMSAUSER$' 
    $Cred = New-Object System.Management.Automation.PSCredential ($Username,(new-object System.Security.SecureString))

    Invoke-command -computername "Name or IP" -credential $Cred -Authentication Credssp -scriptblock {Get-date}

    Is possible to run this with gMSA account?


    Jonathan Santos | http://jonathanrsantos.wordpress.com MCP | MCSA | MCSA Messaging | MCSE | MCITP Exchange 2010 | MCITP Lync Server

    Sunday, June 9, 2019 1:43 AM

All replies