Click to See Complete Forum and Search --> : Run command without Login


solex
July 3rd, 2002, 03:07 AM
I want to run a command after my server boots up but without me having to log on first.
Seems the Run key in the registry or the programs in the StartUp folder are only executed when someone logs on.
I could write a service of course, but may be there is another way?
Thank you all

Manish Malik
July 3rd, 2002, 08:53 AM
The standard way is to write a service and use RunOnce (ref. MS doc: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q179365 )

{ you already knew this anyway.. }

Kdr Kane
July 3rd, 2002, 09:28 AM
I'm assuming you are using W2K server.

You could write a service as you said.
You could put the executable in a startup script.
You could put the executable in the scheduler and run on boot (user ID and password required).

solex
July 3rd, 2002, 10:28 AM
Thanks
I don't think that one can tell the scheduler to do anything just after it's loaded - one always needs a time / date.
But I forgot autoexec.nt - hope it will do the trick.

Kdr Kane
July 3rd, 2002, 11:31 AM
Originally posted by solex
Thanks
I don't think that one can tell the scheduler to do anything just after it's loaded - one always needs a time / date.
But I forgot autoexec.nt - hope it will do the trick.

Like I said, I'm assuming you are using Windows 2000 server. Yes, you can. You don't need a time/date.

solex
July 4th, 2002, 02:23 AM
Thanks - didn't know that but as I am running NT 4 this is not available and autoexec.nt is no use here - so I had to go for a service.