Ok, so I though it was working, but not really. It returns the 0 sporadically, but just for the Service Name. The Service Display Name populates just fine, as well as the other attributes of the service. Testing it on remote XP machines from a Win7 and an XP machine. I need to get all the processes that the WMI service is using so I can stop it, then restart it.
Great UDF. I use it all the time.
I ran into a bug with _Service_EnumDependent that I can't figure out.
The first value returned for the Service Name is 0. All the other values returned are what they should be.
Any help would be greatly appreciated.
#include 'Privilege.au3'
#include 'Services.au3'
$result = _Service_EnumDependent('winmgmt')
For $i = 1 To $result[0][0]
MsgBox(0, '', $result[$i][0])
Next