Log in

View Full Version : Service to run at user account selection


djan
27th July 2005, 05:18
Hi to all,

Is it possible to ask a service to already run at user account selection screen before to select any user ? I have the service 'multiplicity' that runs after I enter in my user account and I would like it already starts before.

Thx for you help.

Shinigami-Sama
27th July 2005, 07:06
you could put it into windows "autoexe.bat" if you realy wanted

djan
27th July 2005, 19:04
you could put it into windows "autoexe.bat" if you realy wantedCan you give some explanations please ? I'm not a script expert.

Doom9
27th July 2005, 19:14
services start whenever Windows is ready. If there's tons of background tasks that have to start up, it'll take a bit, but essentially every windows service runs without a user being logged on.

mgt
27th July 2005, 19:16
Crap, Windows 2000/XP doesn't execute any autoexec.bat.

Instead, create a new .txt file in C:\ for instance and name it something.cmd (same as .bat, just that you will always use .cmd on NT-based systems) and write into it:
net start myservice

Then open gpedit.msc (Start->Run->"gpedit.msc"->Return), there click on Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown) -> Startup
Then click on Add... and select the .cmd file you have just created. The parameter field remains empty.

I haven't tried that but I think it works.

// edit
Doom9's right, actually all auto-start services are loaded before a user logs on. If you want a non-service program to be started, use the startup script method as just described.

djan
28th July 2005, 19:48
Thx for your explanation, I'll try it.

Is there a way to run a program as a windows service ?