Get Service Credentials

This returns the credentials that the service runs under.

Privileges

Normal

Input Parameters

Name Type Required Description
Service Name String Yes

This is the name of the service.

Note that either the service name or display name can be used.

Output Parameters

Name Type Description
Service Name String This is the short name of the service.
Service Display Name String This is the display name of the service.
Service Account Name String This is the user account used by the service.
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example
Service Name String Yes Print Spooler