March 2nd, 2011, 07:17 AM
Creating a WMI Class
I am writing an application that needs to insert some data into WMI.
Now I need to do several things:
Check if Class X exists
If yes delete it.
Create Class X
Insert data into Instance.
In vbscript this is really easy but I can't get my head around how to do it in C++.
The class does not need to survive a reboot as when the program is next run it will recreate everything. So I want to avoid creating MOF files that need to be deployed to the computers the application is run on.
Skelaton Code would be really really appraciated as I am at a bit of a loss even after reading the MS documentation (I can code a bit in C++ but I am far from competent it in).
March 15th, 2011, 06:52 PM
Tags for this Thread
Click Here to Expand Forum to Full Width