NOTE: This example procedure uses Microsoft Windows Server 2012. Please refer to Microsoft documentation to create a service account.
Navigate to Computer Management > Local Users and Groups > Users> Add a User.
Next, navigate to Local Security Policies.
Select Log on as Service > Properties.
Then select Add User or Group and add the user.