WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Services

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Changing 'log on as' for an NT service

Keywords:     wntSvcStart

Question:

I am using the wntSvcStatus and wntSvcStart commands to check for a service running and to start it, but I need a way to input the username and password for a service to login as on the fly. Any ideas??? Thanks.

Answer:

The service command line parameters go into the "params" field. I think it is something like:
        AddExtender("WWWNT34I.DLL")
        wntSvcStart("\\SERVER", "service-name", "flags", "/U:userid /P:password", " ")

Article ID:   W13580
Filename:   wntSvcStart and Password Parameter.txt
File Created: 2001:03:01:14:22:56
Last Updated: 2001:03:01:14:22:56