Listing All Accounts and groups with Rights
So what I am doing is creating an automated server documentation app for disaster recovery. On开发者_JAVA技巧e 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.
Now I have used the code found here 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?
Thanks.
精彩评论