I'm
trying to retrieve a list of all windows users, but all I can manage is
the current user. I want to be able to connect software accounts to the
windows accounts for automated login. How can I get a list of all
windows users?
What do you mean by "all Windows users"? All Windows Users currently logged onto a workstation? All local Windows user accounts? All Windows users in a domain? I would start looking at System.DirectoryServices to see if that can return the types of users you're looking for. A good article on this namespace is:
Unfortunately System.DirectoryServices.DirectorySearcher doesn't work against the local security authority because it's not searchable. Use System.DirectoryServices.DirectoryEntry instead. (See code sample above.)