Wednesday, March 20, 2013

define which user runs a Windows Service

You may create a user and make the user an administrator and then use the user to run a service. Right-click on the service at the "Component Services" pane and pick Properties. A dialog box with four tabs will appear. Go to the "Log On" tab and do what needs to be done. You will have to stop and then restart the service to make the change take effect. If the user is not an administrator you may get an error telling you that access is denied.

Addendum: You will need to add a user at Users beneath "Local Users and Groups" as mentioned here and then add the user to the Administrators group. You may right-click on the user, pick "Properties" and then go to the "Member Of" tab to do so.

No comments:

Post a Comment