[RESOLVED] The Mystery of the Spontaneously starting Service
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?
Re: The Mystery of the Spontaneously starting Service
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".
Re: The Mystery of the Spontaneously starting Service
Wonderful.
Regards,
:afrog:
Re: The Mystery of the Spontaneously starting Service
Quote:
Originally Posted by mendhak
Wonderful.
Regards,
:afrog:
http://technet2.microsoft.com/Window....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