Sign in to follow this  
Followers 0

WMI Query v1.04


13 posts in this topic

Posted (edited)

There are a number of available programs for WMI that will show you information on Class Objects.

After many hours of research and testing, this is my small version. It mainly serves as a reference.

If you're working on a script, you'll still have to find an "example" on the web (if you can find one),

as this program won't provide you with any.

What will it provide?

The script queries information from WMI on your computer.

If the information exist, then you'll be able to view:

- Data Types

- Descriptions

- Mappings

- Origins

- Syntax for Methods

- System Properties for Classes

- and Other Useful Information

Sometimes, a particular class seems to be missing some information or has very little.

If you find what it's "Origin" is... sometimes you can glean something from it's parent.

--

Here are a few links from MSDN that might be of interest:

WMI Reference

http://msdn.microsoft.com/en-us/library/windows/desktop/aa394572(v=vs.85).aspx

Standard WMI Qualifiers

http://msdn.microsoft.com/en-us/library/windows/desktop/aa393651(v=vs.85).aspx

MOF Data Types

http://msdn.microsoft.com/en-us/library/windows/desktop/aa392392(v=vs.85).aspx

--

Let me know if any problems. Thanks.

Version: 1.04

WMI_Query.au3

Update: April 08, 2012

* added: Cache, saved in @AppDataDir\WMI_Query_Cache

* added: _DeleteCache(), Press F9 to delete.

* added: WM_GETMINMAXINFO(), GUI minimal resize.

Update: April 09, 2012

* fixed: HTML tags (left and right arrows) in some WMI strings, causing some data not to display.

Update: April 11, 2012

* fixed: Method Names that have a void CIMType. Would cause method name not to display.

Update: May 22, 2012

Adjusted the height for the combo's. The x64 restriction has been removed.

Edited by ripdad
UEZ likes this

Share this post


Link to post
Share on other sites



Posted

Very useful, a little different to Thanks.

Share this post


Link to post
Share on other sites

Posted

A different approach to display WMI methods! I like the displayed information - can be very useful.

But the loading is relatively slow. What about to save it locally and update it from time to time instead of loading them on startup everytime?

Br,

UEZ

Share this post


Link to post
Share on other sites

Posted

Thanks for the replies.

guinness - I would say that WMI Query and Scriptomatic are Very different.

UEZ - Good idea. I'll work on it when I get the chance.

Share this post


Link to post
Share on other sites

Posted

I agree.

Share this post


Link to post
Share on other sites

Posted

I like it, pretty useful to explore the different quarries available.

Also, I notice you've become victim to a rating troll, leme fix that.

Share this post


Link to post
Share on other sites

Posted

ApudAngelorum - Thanks for the reply. I don't worry too much about ratings. Thanks anyway.

Updated 1st Post

Share this post


Link to post
Share on other sites

Posted (edited)

Nice, now 2nd+ start is much faster!

Br,

UEZ

Edited by UEZ

Share this post


Link to post
Share on other sites

Posted

UEZ - Yes, it turned out very well. Thanks for the suggestion!

Share this post


Link to post
Share on other sites

Posted

Found another issue - Updated 1st Post

Share this post


Link to post
Share on other sites

Posted

it seems cant't support x64 ,can your modify the code ?

Share this post


Link to post
Share on other sites

Posted

It works on my Win7 x64. I also tested and it works on Vista x64.

More information would be useful.

1) Computer

2) Operating System

3) Error Code/Message

4) Script Line that causes the error

Thanks so much.

Share this post


Link to post
Share on other sites

Posted

Updated 1st Post - Fixed the silly problem with x64 not displaying the combo's properly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0