How to create a service account for your WCF service
Jason Taylor, Prashant Bansode, Carlos Farre, Madhu Sundararajan, Steve Gregersen
The following steps show you how to create a service account to run your WCF service.
aspnet_regiis.exe -ga machineName\userName
- Create a Windows account
- Run the following aspnet_regiis.exe command to assign the relevant ASP.NET permissions to the account:
This step is required when your application needs to run in ASP.NET compatibility mode, otherwise you can skip this step.
- Use the Local Security Policy tool to grant the Windows account the Deny logon locally user right. This reduces the privileges of the account and prevents anyone logging onto Windows locally with this account.