Sometimes you need to find out a user's SID...
c:\> wmic useraccount get name,sidOr you could do it the Microsoft Way, but that's more difficult for some reason.
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileListUnder the ProfileList key, you will see the SIDs. By selecting each one individually, you can look at the value entry and see what user name is associated with that particular SID.