I am really new to WMI and COM.
I want to change some parameters to user accounts parental controls and the only API availble is WMI. The WMI provider class to use is WpcUserSettings.
I don't understand how to modify the parameters for each user. Do i have to create a ManagmentObject of this class per user or are they already instanciated for each user.
If some one could give me an example code for one user it would really help.
Thanx !
EDIT: Hi again. I used your example to get user account names and SIDS. However when i search WpcUserSettings there is no result, i used WMI Studio to check this class and there is no instance so i can't read or set attributes. Have you got an idea how to fix this ?
FIX: Ok i found the trick. You have to call the method AddUser(SID) of WpcSystemSettings using ManagementObject.InvokeMethod() for each user you want to add into parental control mangement. Then you can enable parental control in WpcUserSettings and do whatever you want.