Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: querying wmi - recommended structure when iteration seems unnecessary?

Reply
 
Old 11-14-2008   #1 (permalink)
mayayana


 
 

Re: querying wmi - recommended structure when iteration seems unnecessary?

Quote:

> thanks Tom,
> ya, I just tried what I thought would be alternatives and as you already
> siad, it doesn't work. I find it laborious as well but the info obtained
is
Quote:

> great... as for the main reason of my post, I find the whole for each loop
> unclear when you know you are just going to get one thing.
As Tom said, th whole WMI system is very poorly
designed. I've never used very much of WMI, since a
good deal of it is just tedious wrappers around better
functionality. WMI is good for some things. Especially
hardware info. But the people at MS apparently thought
it was clever to structure the whole thing like SQL, so
even for something like the system motherboard you
have no choice but to loop through a dummy "collection".



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Querying for yesterday's events PowerShell
Running file iteration and other scripts under Vista security. How VB Script
Querying a file group on Exchange Server PowerShell
Querying for a COM Interface PowerShell
Unnecessary message Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46