I need to retrieve list of users/groups who have access to perform volume maintain tasks using WMI objects on remote machine.
What I can do it explicitly is
- On the Start menu, click Run. In the Open box, type secpol.msc.
- Expand Local Policies.
- Select the User Rights Assignment folder. The policies will be displayed in the details pane.
- In the pane, double-click Perform Volume Maintenance Tasks.
- In properties window, I can see user/group list who have access.
I need to get this exact list using WMI call in my C# application.