Page 1 of 1 1
Topic Options
#89319 - 2002-11-07 01:40 AM Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
KIWI - Kixtart Interogation of WMI Instances

Download script - 4KB

 -

Was working on this script a little while ago (while building the ListView object) and kinda put this aside for a while ... and not really planning on developing it any further. Just thought I would post it at this point. Had alot of fun running this script on different machines. Checking out all the different WMI classes and all the various settings.

Its called KIWI - Kixtart Interogation of WMI Instances and it works like follows:

1) Enumerates all WIN32_ wmi classes into the left side list pane.

2) When a class is clicked with the mouse, the script enumerates all the known instances of that class (on your wkstn) into the top right hand pane.

3) When an instance is clicked with the mouse, the current actual settings for each instance is enumerated into the bottom, right hand property view.

WARNING PLEASE ! This script is harmless - it only reads and browses WMI classes and instances ... but, it also can demonstrate how much of a PIG WMI can be when enumerating certain classes - when enumerating some of the logical file and file system relating stuff, and maybe some of the Account relates stuff, the enumeration can take so long that one has to end up restarting the workstation. No harm done - just WMI being well ... WMI ... [Wink]

-Shawn

Top
#89320 - 2002-11-07 02:17 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Shawn, I downloaded and tested. The form does not look like what you displayed. [Confused]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#89321 - 2002-11-07 02:23 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
what vers of kixforms you running ?
Top
#89322 - 2002-11-07 02:23 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I DL'd and tested too. SWYM about some things are sloooow.

Yeah mine looks pretty much teh same as yours. I trust it is Win32_Process you're browsing.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89323 - 2002-11-07 02:29 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah, Win32_Process is being viewed ... and to be honest, not sure if WMI is the pig or if Kixtart is the pig - I've run some non-GUI versions of WMI scripts and they can be real painfull to wait for...

Thinking there might be a way to optimize this script - most of the WMI stuff was "borrowed" from Chris's Kix-o-matic script (credit/thanks) - thinking the queries could be optimized down some how, not sure ...

[ 07. November 2002, 02:57: Message edited by: Shawn ]

Top
#89324 - 2002-11-07 02:44 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
So Howard, did you get the versions sorted out?

KiX 4.12
Forms build 36
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89325 - 2002-11-07 03:08 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
2.1.2.36

Still no go.

Form two columns (Property, Value) with a progress bar at the bottom that scoots across at the form.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#89326 - 2002-11-07 03:09 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
User ERROR: Right Kixforms wrong KiXtart version [Embarrassed] [Embarrassed]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#89327 - 2002-11-07 03:11 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
what vers kix were you running ? (now im curious)
Top
#89328 - 2002-11-07 03:12 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
4.02 then 4.12b2 now.

I am surprised that KiXtart makes that much difference.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#89329 - 2002-11-07 03:15 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
know what is - kiwi using floating point calcs to scale the form at runtime, you can change the settings at the top ($VIEWRATIO,etc) and the script will dyna-scale accordingly.

[ 07. November 2002, 03:15: Message edited by: Shawn ]

Top
#89330 - 2002-11-07 03:45 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Shawn, after clicking on Win32_Account and Win32_SID my laptop began large data transfers to/from my three master account domains. I killed the script but the data transfers continued. I had to reboot to stop the communications.

[ 07. November 2002, 03:48: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#89331 - 2002-11-07 03:57 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
BTDTGTTS
Being second from the top, it didn't take long for Shawn's warning to sink in.

You can imagine what it did to my 26.4 connection. [Frown]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#89332 - 2002-11-07 04:23 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
BTDTGTTS ? [Wink]

guess since wmi runs as service, it just goes off on its merry way, enumerating whatever you ask it to ... but it aint as tuned as ADSI is for this kinda function... was thinking about a couple things ...

it seems as if all this enumeration of instances happens in the background, proir to the FOR-EACH-IN-NEXT even starting. so even if Ruud did build in a EXITFOR, don't think it would help in this instance.

has anyone run any of the "other" utilities that do this kind of enumeration ? The only wmi browser I ever ran was many years ago, the one that came out with the WMI SDK ... dont remember it taking this long to enumerate - then again - enumerating classes and the schema is fast - its the instances that take for ever.

like i said before, may be room for much improvement in this script. it was built mainly to test multiple instances of ListView. Maybe some mods to the queries or if someone could figure out how to abort a long enum. maybe by only displaying a maximum of 100 instances (something like that) ... but if it takes that long just to start the enum, then I don't hold much hope in anything improving.

But still would like to hear of anyone's experience with any other browsers.

Top
#89333 - 2002-11-07 08:32 AM Re: Kiwi - Kixtart Interogation of WMI Instances
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Shawn, great little app, but what about enumerating all the other classes.

I am trying to get info out of M$ Exchange, but I am not having much luck.

oh, just had a thought, a dropdown list box with the class type in, for selection.! [Smile]

Nice job.

W
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.067 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org