Hi! My quaestion is how im count the number of existing services ? $objWMIService = ObjGet("winmgmts:\\" & @ComputerName & "\root\CIMV2")
$Services = $objWMIService.ExecQuery("SELECT * FROM Win32_Service", "WQL", BitOR(0x10,0x20))
ConsoleWrite ("----------------------" & @LF & UBound($Services) & @LF & "----------------------" & @LF)Im ask that cus after getting the services list, counting with UBound not work, always get a zero value. For example with that loop im can count: For $objItem In $Services
$i = $i+1
Next .... but im think it is an ugly method.