General discussion

Locked

NT Services

By linhle ·
For Windows NT 4.0 workstation, is there any way to delay a service to start at logon?
Please help.
Thank You

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

NT Services

by howardhenderson In reply to NT Services

Hi,

Yes, you can go into 'control-panel', 'services', and select the service you are wanting to delay and set it to 'manual' instead of automatic service.

Beyond that, a lot (most? or all?) services can be started from the command line - if you wanted to always start the service a certain time after logon, you could create a batch file and wait a specified time and then launch the service....

Hope this helps,
Howard H.

Collapse -

NT Services

by linhle In reply to NT Services

Thank you for your reply,
My problem is I want a Non-administrators domain user to delay and start the service at logon if possible. And as far as i know that you can grant the domain user "log on as a Service" right via User manager and then you can specify the user to start the service... but what about password? domain users need to change their password, too.

Collapse -

NT Services

by mhinckley In reply to NT Services

I'm curious: What service do you want to delay, and why? You can always construct a batch file with a utility like rservice.exe to start the service, and use the sleep.exe command to delay the start of it.

Mike

Collapse -

NT Services

by mhinckley In reply to NT Services

Sorry, just saw your response to the previous post about Non-Admin Domain user etc. Using rservice would require an account with admin rights on the local workstation - I'd suggest that you create an account on that workstation, set the password to never expire, put it in the admin group (for the workstation), and use it to run rservice. Wouldn't require domain admin rights. Still curious about what service etc.

Collapse -

NT Services

by linhle In reply to NT Services

Thank you for you response. The two services are SMS services. I'm having problem with SMS and IBM Client Access. For some reasons when a user logon to a workstation that have both SMS client and IBM client acces, user cannot map a drive to the shared folder on as/400 system, but as soon as user logout and sign back in, and user is able to map a drive to AS/400 shared folder again. This problem does not exist if i disable SMS client Service. Please advice. Thanks

Collapse -

NT Services

by mhinckley In reply to NT Services

Okay, I see now. The SMS Client services can be run by the SMS Service Account, which has admin rights. If you're not the SMS administrator, you'll have to get with him/her to get the exact account name and password. Once you have that, set the service to manual, and to use the SMS Service account (or you can use that account in the .ini file when you call your rservice utility to start the service). Next create a batch file which uses the rservice.exe utility to start the service. Put a Sleepcommand in the batch file so it won't start on bootup.

Or better yet, create a batch file that first stops the service, then starts your AS/400 program, and put an icon for that batch file on the users desktop. You'd have to restart the SMS services when the AS/400 connection is no longer needed, so maybe another batch file? Anyway, if you did this you could stop the service on demand, and wouldn't have to worry about timing etc.

Collapse -

NT Services

by linhle In reply to NT Services

Thank you for your respond again. I think this helps me a lot. One more question for you. Is there anyway that i can specify password in the .ini file for the domain userid that i use to start the service? Thanks again

Collapse -

NT Services

by linhle In reply to NT Services

Thank you for your respond again. I think this helps me a lot. One more question for you. Is there anyway that i can specify password in the .ini file for the domain userid that i use to start the service? Thanks again

Collapse -

NT Services

by mhinckley In reply to NT Services

Yes, you can specify the account and password in an ini file. If you check Technet you'll see a number of Q articles about rservice. We used it to install, stop, start and delete services automatically.

Collapse -

NT Services

by Shanghai Sam In reply to NT Services

Hi again, I searched through technet but did not find any references about specifying password in the .ini file. Please show me if you remember how to specify password in the .ini file. Thanks again

Back to Windows Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums