Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Running a service as a user other than localSystem account

VasumathyVasumathy Member Posts: 4
I have an exe which I have installed as a service. However by default the exe gets installed with logon user as LocalSystem. I have to install the service with logon user as some user and a password.

I have to go to the service properties->LogOn-> and give the account name and password there every time I install the service. I want to do this programmatically.

Any pointers will be of great help,

Thanks.

Comments

  • VasumathyVasumathy Member Posts: 4
    Found out the solution myself-

    ChangeServiceConfig -
    I was able to use the above function and logon as a differet user.


    : I have an exe which I have installed as a service. However by default the exe gets installed with logon user as LocalSystem. I have to install the service with logon user as some user and a password.
    :
    : I have to go to the service properties->LogOn-> and give the account name and password there every time I install the service. I want to do this programmatically.
    :
    : Any pointers will be of great help,
    :
    : Thanks.
    :

Sign In or Register to comment.