I am new in writing program in WMI. I have a syntax error is my first program in the For statement when run listed below.
Can anyone help me out?
dim objWMI
For Each objWMI In
GetObject(“winmgmts:\root\cimv2”).InstanceOf(“Win32_Service”)
Wscript.EchoobjWMI.Name
Next