OpenNTF.org - WMI machine interogation
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
WMI machine interogation 
Rating:
Rating: 4 , Number of votes: 2 
Contributor:
Dwight Wilbanks 
Category:
Design Elements, Lotusscript, XML/XSL 
Type:
API Functions 
Notes Version:
R6.x 
Last Modified:
28 Jul 2004 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
When I saw Scott Wichall's posting about WMI capabilities, I was really impressed.


http://www.openntf.org/projects/codebin/codebin.nsf/CodeByDate/93B6B3A143845CFE86256EC90044C8E5?OpenDocument

But, it left me wondering what else was available to us, and how can we maximize it?

I put this agent together pretty quickly and planned on cleaning it up before posting, but, have not done a thing since then. :-(

I decided to let my perfectionism go and set the code free without the polish, don't tell anyone ya got it from me.

Usage / Example
Import this into an agent in a brand new database, It creates forms on the fly as it needs them to represent the data, as it defines itself.

You will have to build your own views.

Im sure there are much more data types available, I just collected all I could find of MS's site.

The current implementation still leave a lot of garbage behind (c:\) it requires 6.5.1 or above, but, if you want to run on 6.5.0 you should be able to change the doctype in CreateForm, I didn't want to realease it that way because I had not tested it that way.

Good luck
Code Attachments
WMIService02.lss (9 Kbytes)
 Comments
Posted by Vince Schuurman on 07/29/2004 04:39:35 PMSounds cool, but...
... i get an error on the xmlschemas\domino_6_5_1.dtd.
Any ideas?
Posted by Dwight Wilbanks on 07/29/2004 04:56:49 PMRE:Any ideas?
What was the text of the error message that you got?
Was it durring the line:
Call importer.Import(ThisStream, g_CurrDB)
Is the XML properly formed?
What codepage is your windows configured for? Are there any non-roman chars that might be need to be escaped?
What version of notes are you using? Are you manager in the DB that you are using?
Posted by Vince Schuurman on 07/30/2004 02:57:36 AMMust have been...
... something with the chars yes, cause it's working fine on different PC
Posted by Scott D Wichall on 07/30/2004 03:13:19 AMRe: WMI machine interogation
Nice to see somebody else making good use of my code :-)
Cheers and well done
 Add your comment!