'
'====================================================================
'Purpose : get the all the SQL Server related services information.
'
'Author : Satyanarayana B
'Created on: 10/11/2008
'
'Input : Servers.txt (Create the servers list in the text file
' and place at current folder).
'Output : Service_list.csv file in the current folder
'
'Usage : cscript service.vbs
'====================================================================
'
Input :== Servers text file
===================
Server1
Server2
Output :== Service_list.csv
====================
System Name, Service Name, Service State, Caption, Start Mode, Account Name
Server1,MSSQLSERVER,Running,MSSQLSERVER,Auto,Domain\User,
Server1,MSSQLServerADHelper,Stopped,MSSQLServerADHelper,Manual,LocalSystem,
Server1,MSSQLServerOLAPService,Running,MSSQLServerOLAPService,Auto,Domain\User,
Server2,MSSQLSERVER,Running,MSSQLSERVER,Auto,Domain\User,
Server2,MSSQLServerADHelper,Stopped,MSSQLServerADHelper,Manual,LocalSystem,
Server2,MSSQLServerOLAPService,Running,MSSQLServerOLAPService,Auto,Domain\User,