title: Change users parental control settings using WMI in c#
body: <p>I am really new to WMI and COM.</p>
  
  <p>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.</p>
  
  <p>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. </p>
  
  <p>If some one could give me an example code for one user it would really help.</p>
  
  <p>Thanx !</p>
  
  <p>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 ?</p>
  
  <p>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.</p>