Is there a way to enumerate all users on a local (NT-based) Windows box that can log in locally? Basically, I need a list of non-system users - this includes Administrator but excludes SYSTEM, LOCAL SERVICE and NETWORK SERVICE.
Edit: Yes, I need to do this from code. Since this is a programming website, I thought this was implied.