以用户身份启动Windows服务 [英] Starting a Windows Service as a User

查看:409
本文介绍了以用户身份启动Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有设置为本地系统且启动类型为自动"的服务.重新启动后,以用户身份登录时,该服务将无法启动,因为该用户没有启动该服务的安全性.我的问题是:有没有办法以用户身份启动服务.作为管理员,它可以正常工作-立即开始.尝试了互联网,但找不到任何东西.我要么需要使用启动服务的VB.net程序来解决问题,要么需要用户的允许.
任何人都有任何想法,谢谢

Have a service that is Set up as a Local system and startup type as Automatic. on a reboot, and logging on as a user the service will not start because the user doesnt have security to start the service. My Question is: Is there a way to start the service as the user. As a administrator it works fine - starts right up. tryed the internet, but couldnt find anything. I either need to solve the problem using the VB.net program that starts the service or thru the users persmissions.
anyone have any ideas Thanks

推荐答案

尝试从http://technet.microsoft.com/zh-cn/sysinternals/bb897542.aspx上的PsService(免费)能够从命令行启动/停止/等服务的能力,它将需要一组备用凭据.

马克·鲁西诺维奇(Mark Russinovich)是作者,并且是一个非常出色的编码器.
try PsService (free) from http://technet.microsoft.com/en-us/sysinternals/bb897542.aspx it has the ability to start/stop/etc a service from the command line it will take an alternate set of credentials.

Mark Russinovich is the author and is an insanely good coder.


这篇关于以用户身份启动Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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