How can I get a list Local Windows Users (Only the Users that appear in the windows Logon Screen)
问题 How can I get a list of Local Windows Users (Only the Users that appear in the windows Logon Screen) I have tried many methods using Windows Principle library & WMI Select commands. I keep getting Administrator, Guest & some other bizarre accounts (VUSRNEIL-DELL, $HOMEGROUPUSER, ASPNET...etc.) Neither of these 3 user accounts appear on the Logon screen. How can I Differentiate between these user types? I am coding in C# 回答1: Just add a reference to System.Management in a Console Application