you can use WMI and Win32_Service class, should find loads of examples on the site. i find ADSI more readableSet objComputer = GetObject("WinNT://computername,computer")objComputer.Filter = Array("Service")For Each aService In objComputer Wscript.Echo aService.Name & "=" & aService.StatusNext
I got this snippet of code from another closed thread.
I nee some more work done here.
I need to check the status of the Service and that value you get e.g 4=running I need to get written to a log file.
Is this possible?
Regards
I got this snippet of code from another closed thread.
I nee some more work done here.
I need to check the status of the Service and that value you get e.g 4=running I need to get written to a log file.
Is this possible?
Regards