#89319 - 2002-11-07 01:40 AM
Kiwi - Kixtart Interogation of WMI Instances
|
Shawn
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 ...
-Shawn
|
Top
|
|
|
|
#89320 - 2002-11-07 02:17 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Howard Bullock
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.
|
Top
|
|
|
|
#89325 - 2002-11-07 03:08 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Howard Bullock
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.
|
Top
|
|
|
|
#89326 - 2002-11-07 03:09 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
User ERROR: Right Kixforms wrong KiXtart version
|
Top
|
|
|
|
#89328 - 2002-11-07 03:12 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Howard Bullock
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.
|
Top
|
|
|
|
#89330 - 2002-11-07 03:45 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Howard Bullock
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 ]
|
Top
|
|
|
|
#89332 - 2002-11-07 04:23 AM
Re: Kiwi - Kixtart Interogation of WMI Instances
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
BTDTGTTS ?
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
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 515 anonymous users online.
|
|
|