From c07631beda1ceb853bf82a0a8aa341c44a012499 Mon Sep 17 00:00:00 2001 From: NextTurn <45985406+NextTurn@users.noreply.github.com> Date: Tue, 1 Jan 2019 00:00:00 +0800 Subject: [PATCH] Document special accounts and the default domain --- doc/xmlConfigFile.md | 46 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/doc/xmlConfigFile.md b/doc/xmlConfigFile.md index 84d68efb..54eb063f 100644 --- a/doc/xmlConfigFile.md +++ b/doc/xmlConfigFile.md @@ -258,7 +258,9 @@ For more information, see [Security Descriptor Definition Language](https://docs ### Service account -It is possible to specify the useraccount (and password) that the service will run as. To do this, specify a `` element like this: +The service is installed as the [LocalSystem account](https://docs.microsoft.com/windows/win32/services/localsystem-account) by default. If your service does not need a high privilege level, consider using the [LocalService account](https://docs.microsoft.com/windows/win32/services/localservice-account), the [NetworkService account](https://docs.microsoft.com/windows/win32/services/networkservice-account) or a user account. + +To use a user account, specify a `` element like this: ```xml @@ -269,10 +271,12 @@ It is possible to specify the useraccount (and password) that the service will r ``` +The `` is optional and defaults to the local computer. + The `` is optional. If set to `true`, will automatically set the "Allow Log On As A Service" right to the listed account. -To use [(Group) Managed Service Accounts](https://technet.microsoft.com/en-us/library/hh831782.aspx) append `$` to the account name and remove `` element: +To use [Group Managed Service Accounts](https://docs.microsoft.com/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview), append `$` to the account name and remove `` element: ```xml @@ -282,6 +286,44 @@ To use [(Group) Managed Service Accounts](https://technet.microsoft.com/en-us/li ``` +#### LocalSystem account + +To explicitly use the [LocalSystem account](https://docs.microsoft.com/windows/win32/services/localsystem-account), specify the following: + +```xml + + LocalSystem + +``` + +Note that this account does not have a password, so any password provided is ignored. + +#### LocalService account + +To use the [LocalService account](https://docs.microsoft.com/windows/win32/services/localservice-account), specify the following: + +```xml + + NT AUTHORITY + LocalService + +``` + +Note that this account does not have a password, so any password provided is ignored. + +#### NetworkService account + +To use the [NetworkService account](https://docs.microsoft.com/windows/win32/services/networkservice-account), specify the following: + +```xml + + NT AUTHORITY + NetworkService + +``` + +Note that this account does not have a password, so any password provided is ignored. + ### Working directory Some services need to run with a working directory specified.