PDA

Click to See Complete Forum and Search --> : [RESOLVED] The Mystery of the Spontaneously starting Service


mendhak
Feb 8th, 2007, 03:35 AM
Fancy title, but simple question.

Over the past few days, whenever I've been coming in to work, a few windows services which I had disabled the day before on some test servers will have been restarted.

Nobody else accesses this machine. So the question is, is it possible that a generalized batch script can run on a server every day that could restart all services, without knowing names?

Perhaps a server reboot occurs every now and then. Where can I find out the last boot time of a Windows box?

rory
Feb 8th, 2007, 04:13 AM
Enable "Bootlog" (check the box) in the Boot.ini section of MSCONFIG (Start, Run, MSCONFIG), and it will then be created in the Windows Directory as a file called "ntbtlog.txt".

mendhak
Feb 8th, 2007, 05:29 AM
Wonderful.


Regards,
:afrog:

superbovine
Feb 9th, 2007, 08:16 PM
Wonderful.


Regards,
:afrog:

http://technet2.microsoft.com/WindowsServer/en/library/6c0a1e0b-ea5d-4a38-9682-944d17cfe11c1033.mspx?mfr=true

write a batch file using 'net start' cli command. Then put it in your task scheduler for the proper type with proper account with rights.

edit:
...net start will return the names of the services. I guess you catch the console stream using net start the restart them all.

I have application that does this with bootcfg.exe