简体   繁体   中英

Running application as windows service

I have an application that is running as window service and its running under a valid use account not under default system account ,now my worry is if in future use changes his password for that account will it effect this service??

Thanks

由于用户凭据不匹配,该服务将停止工作。

Yes.

The password you enter in the service properties must be changed of the user changes his password, so it's a bad idea to run a service under a real live user account.

You can either set it to run on a system account, and grant that account the necessary resources for the service to function, or you can create a pseudo-system account - a user account that is restricted from everything else, except from the service resources.

Yes, if the password is changed for the user account, you need to update the stored password as well. And to make this answer more programming related, this MSDN article shows you how to do it programmatically: Changing the Password on a Service's User Account

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM