开发者

How to prevent from changing a Windows Service Startup Type?

开发者 https://www.devze.com 2022-12-20 03:05 出处:网络
I开发者_运维知识库 created a Windows service and installed into users machine. That windows service is very important and I do not want to user can change its startup type to \"disable\".

I开发者_运维知识库 created a Windows service and installed into users machine. That windows service is very important and I do not want to user can change its startup type to "disable". It seems "Plug and Play" service can disable the Startup drop-down listbox. How can I make same behavior for my windows service?


I would imagine it has to do with setting the appropriate permissions on the registry key. But a user with sufficient permissions can do anything. If this is for a business application, I would try to stick to using group policy or user permissions. If this is for a commercial application then I would expect a lot of upset users and malware detection.

0

精彩评论

暂无评论...
验证码 换一张
取 消