Needed batch file or script to check service status
- Hi Experts,
I need a batch file or script file which can check the service status from the services.txt and on servers listed hosts.txt.
This also export the status to file in the form of table like Display_name, Status
Regards,
Shashi
Answers
- Something here should get you started.
http://www.computerperformance.co.uk/vbscript/wmi_services.htm
http://technet.microsoft.com/en-us/scriptcenter/dd939957.aspx
http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=operatingsystem&f%5B0%5D.Text=Operating%20System&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=services&f%5B1%5D.Text=Services
Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect- Marked As Answer byWilson JiaMSFT, ModeratorTuesday, October 13, 2009 8:50 AM
Hi Shashi,
As the question is more related to scripting, I would like to suggest that you initial a new thread in our Scripting forum for better and accurate answer to the question. The community members and support professionals there are more familiar with scripting and can help you customize the script in a more efficient way.
The Official Scripting Guys Forum!
http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
Best Regards,
Wilson Jia
This posting is provided "AS IS" with no warranties, and confers no rights.- Marked As Answer byWilson JiaMSFT, ModeratorTuesday, October 13, 2009 8:50 AM
All Replies
- Something here should get you started.
http://www.computerperformance.co.uk/vbscript/wmi_services.htm
http://technet.microsoft.com/en-us/scriptcenter/dd939957.aspx
http://gallery.technet.microsoft.com/ScriptCenter/en-us/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=operatingsystem&f%5B0%5D.Text=Operating%20System&f%5B1%5D.Type=SubCategory&f%5B1%5D.Value=services&f%5B1%5D.Text=Services
Regards, Dave Patrick ....Please no email replies - reply in newsgroup. Microsoft Certified Professional Microsoft MVP [Windows] http://www.microsoft.com/protect- Marked As Answer byWilson JiaMSFT, ModeratorTuesday, October 13, 2009 8:50 AM
Hi Shashi,
As the question is more related to scripting, I would like to suggest that you initial a new thread in our Scripting forum for better and accurate answer to the question. The community members and support professionals there are more familiar with scripting and can help you customize the script in a more efficient way.
The Official Scripting Guys Forum!
http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
Best Regards,
Wilson Jia
This posting is provided "AS IS" with no warranties, and confers no rights.- Marked As Answer byWilson JiaMSFT, ModeratorTuesday, October 13, 2009 8:50 AM
- Hi Wilson,
Yes I know that it is related to Scipting. But if you are aware of the exact thread then please provide me the same.
Shashi