mirror of https://github.com/winsw/winsw
				
				
				
			Merge pull request #155 from beatcracker/patch-1
How to use (Group) Managed Service Accountspull/157/head
						commit
						8bf6720f7d
					
				| 
						 | 
				
			
			@ -201,6 +201,16 @@ It is possible to specify the useraccount (and password) that the service will r
 | 
			
		|||
The `<allowservicelogon>` 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 `<password>` element:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
    <serviceaccount>
 | 
			
		||||
       <domain>YOURDOMAIN</domain>
 | 
			
		||||
       <user>gmsa_account$</user>
 | 
			
		||||
       <allowservicelogon>true</allowservicelogon>
 | 
			
		||||
    </serviceaccount>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Working directory
 | 
			
		||||
Some services need to run with a working directory specified. 
 | 
			
		||||
To do this, specify a `<workingdirectory>` element like this:
 | 
			
		||||
| 
						 | 
				
			
			@ -228,4 +238,4 @@ This is useful when the main process is a console, which can respond to Ctrl+C c
 | 
			
		|||
 | 
			
		||||
```
 | 
			
		||||
<stopparentprocessfirst>true</stopparentprocessfirst>
 | 
			
		||||
```
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue