I’m trying to find a way to get a comprehensive list of user accounts on a Windows 7 system, including hidden ones. The User Accounts dialog (>control userpasswords2) only shows the normal user accounts, and even the Local User and Groups editor only shows normal user accounts and standard hidden/disabled ones like Administrator and Guest. The Select Users or Groups dialog has a Find Now button which which combines users and groups, but alas, it has the same contents as the LUG.

I’m looking for a more comprehensive list that includes “super-hidden” / virtual user accounts like TrustedInstaller (or to be more accurate, NT Service\TrustedInstaller—notice the different “domain”).

I checked HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList, but the SpecialAccounts key does not exist.

I also checked HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList, and while it does have the SystemProfile, LocalService, and NetworkService accounts listed, it does not have others (like TrustedInstaller and its ilk).

TrustedInstaller specifically is a little confusing because it is a user, a service, and an executable file. I am using it as an example because it is “super hidden” in that it does not seem to be listed in any sort of user list. (As an experiment, I tried searching the whole registry for “trustedinstaller” to see if I could find a place where it is listed as a user, but found none.)

To be clear, what I am looking for is a list of all accounts that can be used in a user input-field such as in permissions dialogs or as a runas argument.

link|improve this question

48% accept rate
feedback

2 Answers

This is because TrustedInstaller is a service and not a "user" object. With Vista, Services are now security principals and can be assigned permissions.

http://technet.microsoft.com/en-us/magazine/2007.06.acl.aspx

link|improve this answer
Yes; that's exactly what I'm talking about. I'm looking for a comprehensive list of things that can be given permissions be they users, services, or what have you. Is there a complete list of “security principals”? – Synetech Apr 9 '11 at 19:13
I don't think there is a way to tap into the ACLs and find a COMPLETE list of security principals. I'm not sure why you want a complete list of security principals in the first place. Technically, the Windows Modules Installer (TRUSTEDINSTALLER's service name) runs under the Local SYSTEM account. – surfasb Apr 10 '11 at 21:28
> I'm not sure why you want a complete list of security principals in the first place. Curiosity. (Does anybody have that anymore these days…?) – Synetech Feb 5 at 21:10
You can point that curiosity towards the MSDN library. – surfasb Feb 6 at 3:51
feedback
  1. Go to any file on your hard drive, right-click, and select properties.
  2. Go to the security tab and click Edit

    edit security settings

  3. Click Add...
  4. Click Advanced...

    select users or groups

  5. Click Object Types... and uncheck Groups, then click OK

    object types

  6. Click Find Now. This will list all regular users and built-in system users ("built in security principles", as Windows calls them).

    find now

Note that not all accounts that appear on this page can be used in a Run-As command, though they can all be used in a permissions dialog.

link|improve this answer
1  
I’m familiar with that dialog, and already mentioned it in the question: “find now”. Note that while the “user” SYSTEM is (or at least should be) in there, TrustedInstaller is not. – Synetech Mar 4 '11 at 0:10
Sorry, I thought you were referring to the find now button in the Users and Groups control panel, which is similar but slightly different. To my knowledge, the only account which does not appear here is TrustedInstaller. This is because Microsoft goes to great lengths to prevent you from ever doing anything to/with the TrustedInstaller account. I'll let you know if I think of any other ways to do this. – nhinkle Mar 4 '11 at 0:17
That’s why I’m asking; I’m wondering what other undocumented users exist… – Synetech Mar 6 '11 at 20:21
There is a Microsoft TechNet article with information about most of them, but TrustedInstaller isn't on there. support.microsoft.com/kb/243330 – nhinkle Mar 6 '11 at 21:39
That list is only of SIDs; a separate list would be needed to map them to the “user names” (where applicable). – Synetech Feb 5 at 21:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.