A server learns which groups it belongs to when it starts. Restart it, install the account on it, then check it can fetch the gMSA's password.
Restart the server
CON-APP-01
Restart-Computer
Sign in as a domain account
Sign in as CONTOSO\Administrator or another domain account. The server's local Administrator cannot query the domain, and the test below fails with an access error.
Install and test the account
Run PowerShell as administrator.
CON-APP-01
Add-WindowsFeature RSAT-AD-PowerShell Install-ADServiceAccount -Identity "svc-app-gmsa" Test-ADServiceAccount -Identity "svc-app-gmsa" # must be True
True means this server can fetch the password, and the account is ready to use here.
Adding another server later
A domain controller
Add-ADGroupMember -Identity "SG-CON-App-Hosts" -Members "CON-APP-02$"
Then restart that server and run the same install and test on it.
Done when
Check
Test-ADServiceAccount returns True on every server in the host group.


