系统ServiceProcess ServiceAccount用法? [英] System ServiceProcess ServiceAccount Usage?

查看:219
本文介绍了系统ServiceProcess ServiceAccount用法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://msdn.microsoft.com/en-us/library/system .serviceprocess.serviceaccount.aspx [ ^ ]

上面的链接有一个简短的描述,但是我不太了解在不同情况下应该使用哪个链接.我遇到了 LocalSystem 的访问被拒绝"问题.有人可以帮助我更好地理解这些.我要在其上安装此程序的计算机具有用户帐户,但我希望该服务可用于所有用户,并且我的Windows程序需要能够启动和停止它.使用ServiceController类-我已经对此进行了一些测试.我可以检查状态,这表明获取对服务的访问权限没有错误,只是无法启动服务.谢谢...

http://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceaccount.aspx[^]

The above link has a brief description, but I don''t quite understand which to use for different situations. I have been running into ''Access denied'' problems with LocalSystem. Can someone help me understand these better. The computers I am wanting to install this on have user accounts, but I want the service available to all users and my Windows program needs to be able to start and stop it Using the ServiceController class - I have done some testing with this. I can check the status and this shows there is no error in obtaining access to the service, just can''t start the service. Thanks...

推荐答案

该服务对所有用户均可用,如果您希望另一个应用程序与该服务进行对话.

如果您希望用户启动/停止服务,则必须由管理员来执行.普通用户无权启动/停止服务.
The service is available to all users, IF you want another application to talk to the service.

If you want the users to start/stop the service, they''ll have to be admins to do it. Normal users don''t have permissions to start/stop services.


这篇关于系统ServiceProcess ServiceAccount用法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆