Your network contains an Active Directory domain named contoso.com. The domain contains a
server named Server1.Server1 runs Windows Server 2012 R2.
You create a group Managed Service Account named gservice1.
You need to configure a service named Service1 to run as the gservice1 account.
How should you configure Service1?

A.
From Services Console configure the recovery settings
B.
From a command prompt, run sc.exe and specify the config parameter
C.
From Windows PowerShell, run Set-Service and specify the -PassThrough parameter
D.
From a command prompt, run sc.exe and specify the sdset parameter
Explanation:
Sc config, Modifies the value of a service’s entries in the registry and in the Service Control Manager
database.
obj= {<AccountName> | <ObjectName>}
Specifies a name of an account in which a service will run, or specifies a name of the Windows driver
object in
which the driver will run. The default setting is LocalSystem.
password= <Password>
Specifies a password. This is required if an account other than the LocalSystem account is used.
From a command prompt, run sc.exe and specify the config parameter
0
0
Example
sc config ServiceName obj= “CORP\mygmsa$” password= “”
Where ServiceName is the name of your service
Where “Corp\mygmsa$” is your Domain\group managed service account name$(the $ sign is obligatory when using a gMSA)
The trick is to append a $ after the account name, and leave the password blank:
here is a good link explaining gmsa
https://blogs.technet.microsoft.com/askpfeplat/2012/12/16/windows-server-2012-group-managed-service-accounts/
0
0