Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Vista & WMI

1 view
Skip to first unread message

Jerry West

unread,
Apr 13, 2010, 7:01:06 PM4/13/10
to
I've been using the following call in pre-Vista environments to get the
model & manufacturer of a system. But under Vista the call now yields an
error: Incorrect syntax

sComputerName$ = "TheVilla"
Const WMI_PATH_NAME = "winmgmts:{impersonationLevel=impersonate}!\\"

Set BiosSet = GetObject(WMI_PATH_NAME & sComputerName$ &
"\root\cimv2").InstancesOf("Win32_ComputerSystem")

Has this call changed in Vista? Is there a different syntax for it now?

JW

0 new messages