regedit current user
Perform the following: Start the registry editor.
Move to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
Select each SID under this in turn and look at the ProfileImagePath and at the end of this string is the name of the user.
Are there any code examples left?
New code examples in category Other