title: Listing All Accounts and groups with Rights
body: <p>So what I am doing is creating an automated server documentation app for disaster recovery.  One of it's documentation sections is to essentially dump the following info into a word document:
  gpedit.msc > Windows Settings > Security Settings > Local Policies > User Rights Assignment.</p>
  
  <p>Now I have used the code found <strong><a href="https://stackoverflow.com/questions/2112901/i-successfully-called-advapi32s-lsaenumerateaccountrights-from-c-now-how-do">here</a></strong> and it works like a charm.  The problem is that it only gets the Rights for one user at a time.  I am looking for a way to enumerate all users and groups that have any kind of privilege on a machine, does anyone know where I can start with this?</p>
  
  <p>Thanks.</p>