Y yellowblueyellow Jul 9, 2007 #1 Hi, I want to list all groups on a local machine using C#. How do I go about this? Thanks
N Nicholas Paldino [.NET/C# MVP] Jul 9, 2007 #2 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.
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.