Get a list of active local users with .NET

The code below will return all users on the machine that are not marked as disabled. Be sure to add a reference to System.DirectoryServices.