I like to change my SQL service account to gMSA, in order to do that I need install the gMSA account on the server.
However, to run Install-ADServiceAccount, I need run Install-WindowsFeature AD-DOMAIN-SERVICES. this will add AD features, and after install the server keeps reminding me to promote to DC, this is annoying and I have to remove the AD features after.
I am asking if it is possible to install the AD service account remotely? so that I don't have to install AD-Domain services on each sql server where I change to gMSA.
PS C:\SQL> Install-ADServiceAccount serviceaccountgmsa
Install-ADServiceAccount : The term 'Install-ADServiceAccount' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
- Install-ADServiceAccount servicegmsa
- ~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (Install-ADServiceAccount:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException