开发者

Listing All Accounts and groups with Rights

开发者 https://www.devze.com 2023-03-25 20:28 出处:网络
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 docu

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消