gMSA support OS? RRS feed


  • User1724605321 posted

    Hi lamGuy84,

    I am not familiar with gMSA , but refer to link : https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/manage-serviceaccounts

    Once you've decided on the name for your gMSA, run the following cmdlets in PowerShell to create the security group and gMSA.

    # Replace 'WebApp01' and 'contoso.com' with your own gMSA and domain names, respectively
    # To install the AD module on Windows Server, run Install-WindowsFeature RSAT-AD-PowerShell
    # To install the AD module on Windows 10 version 1809 or later, run Install-WindowsCapability -Online 'Rsat.ActiveDirectory.DS-LDS.Tools~~~~'
    # To install the AD module on older versions of Windows 10, see https://aka.ms/rsat
    # Create the security group
    New-ADGroup -Name "WebApp01 Authorized Hosts" -SamAccountName "WebApp01Hosts" -Scope DomainLocal
    # Create the gMSA
    New-ADServiceAccount -Name "WebApp01" -DnsHostName "WebApp01.contoso.com" -ServicePrincipalNames "host/WebApp01", "host/WebApp01.contoso.com" -PrincipalsAllowedToRetrieveManagedPassword "WebApp01Hosts"
    # Add your container hosts to the security group
    Add-ADGroupMember -Identity "WebApp01Hosts" -Members "ContainerHost01", "ContainerHost02", "ContainerHost03"

    Hope that helps.

    Best Regards,

    Nan Yu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 3, 2019 2:29 AM