List all groups on a local computer using C#

  • Thread starter Thread starter yellowblueyellow
  • Start date Start date
Y

yellowblueyellow

Hi, I want to list all groups on a local machine using C#. How do I go
about this?

Thanks
 
You could use the classes in the System.Management namespace to perform
a WMI query for all instances of the Win32_Group WMI class where the
LocalAccount property is true.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top