How should you configure Service1?

Your network contains an active directory domain named Contoso.com. The domain contains a server named
Server1 that 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?

Your network contains an active directory domain named Contoso.com. The domain contains a server named
Server1 that 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 Log On settings

B.
From a command prompt, run sc.exe and specify the privs parameter

C.
From Windows PowerShell, run Set-Service and specify the –StartupType parameter

D.
From a command prompt, run sc.exe and specify the sdset parameter

Explanation:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?
view=powershell-5.1



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Will

Will

I think A may be the better answer, because Set-Service -StartupType does not modify the credentials of the service.

fiber

fiber

A) or B) are correct.

Sc config, Modifies the value of a service’s entries in the registry and in the Service Control Manager database.

obj= { | } 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=
Specifies a password. This is required if an account other than the LocalSystem account is used.