TransWikia.com

Windows service fails to start with custom user until started once with local user

Super User Asked by Gauls on November 20, 2021

All of a sudden my Windows service application after installation does not start. (Some services stop automatically if they have no work to do.)

The service uses a custom user. If I change the logon setting to use the local system account, the service starts fine. Then when I go back and change the login setting to use this custom account (local user -> custom user under user group), the service will start.

Why doesn’t it work in the first place?

2 Answers

In my case it was caused by user not having "Logon as a service permission" in computer policies, so after restart Windows will fail to start the service.

For more information, refer to this MSDN question

Answered by Veton on November 20, 2021

Is the user account disabled?
Does the user account have "User must change password at next logon" checked?
Does the user account have rights to run as a service?

Answered by ta.speot.is on November 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP