Programming in WMI - TechRepublic
General discussion
January 27, 2005 at 03:08 AM
paulkayengheng

Programming in WMI

by paulkayengheng . Updated 21 years, 2 months ago

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

This discussion is locked

All Comments