Batch file to backup with computer name.
Hi, I would like to run this on Windows server 2003 to check for services running and to sent the output via email. Also is it possible to only filter on the services I want emailed. 1. Basically I want to run this as a schedule on the Windows 2003 servers. 2. Every morning the batch will run to give the output in a txt format. I know it can be done using C:\>sc query winmgmt >> testing.txt. 3. The folder would be created with computername and current date and output file will be moved to the folder 4. The output file services.txt should be emailed to a group or users 5. if the service in the log stopped the user should be notified via email. Many Thanks Padawan_2010
January 25th, 2010 4:43pm

I got this so far in the batch file @echo off mkdir %date% sc query winmgmt >> testing.txt sc query WmiApSrv >> testing.txt move testing.txt c:\script\services\%date%
Free Windows Admin Tool Kit Click here and download it now
January 25th, 2010 4:44pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics