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.
 
Back
Top