I wonโt explain exactly how to do this, but since you are doing something related to a good understanding of windows, programming and administration, Iโll just give you a link to the source code that you can adapt to your project to manage WMI security :
http://www.codeproject.com/KB/system/WmiSecurity.aspx
Basically you should note the following paragraph:
So, at this stage, examples are enough to illustrate the use of the utility. Suppose you want to add the HelpDesk domain group to CIMV2 and the subsequent namespaces on computer S223001. Also, suppose this group must be able to remotely connect and read WMI objects. For this:
WmiSecurity / C = S223001 / A / N = Root \ CimV2 / M = MyDomain \ HelpDesk: REMOTEACCESS / R
Hope this can help.
Greetings.
source share