Windows 10: Finder the user's email address

Discus and support Finder the user's email address in AntiVirus, Firewalls and System Security to solve the problem; I found out that using the stored email used to sign in with Windows, Microsoft Live, Skype is the best way to determine (in all probability) the... Discussion in 'AntiVirus, Firewalls and System Security' started by Michael Haephrati, Aug 19, 2018.

  1. Finder the user's email address


    I found out that using the stored email used to sign in with Windows, Microsoft Live, Skype is the best way to determine (in all probability) the active email address of the user.


    Windows stores used email accounts used as "Live ID" in the "UserExtendedProperties" key in



    HKEY_CURRENT_USER\Software\Microsoft\IdentityCRL

    The assumption is that this email was selected by the user as the Windows user name to log in to the PC and/or to other Windows services.

    Therefore you can get the email accounts using the following code:



    //
    // void GetDefaultEmailAddress()

    {
    HKEY key;
    TCHAR achKey[MAX_KEY_LENGTH]; // buffer for subkey name
    DWORD cbName; // size of name string
    TCHAR achClass[MAX_PATH] = TEXT(""); // buffer for class name
    DWORD cchClassName = MAX_PATH; // size of class string
    DWORD cSubKeys = 0; // number of subkeys
    DWORD cbMaxSubKey; // longest subkey size
    DWORD cchMaxClass; // longest class string
    DWORD cValues; // number of values for key
    DWORD cchMaxValue; // longest value name
    DWORD cbMaxValueData; // longest value data
    DWORD cbSecurityDescriptor; // size of security descriptor
    FILETIME ftLastWriteTime; // last write time

    DWORD i, retCode;

    TCHAR achValue[MAX_VALUE_NAME];
    DWORD cchValue = MAX_VALUE_NAME;

    if (RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Microsoft\\IdentityCRL\\UserExtendedProperties", NULL, KEY_READ, &key) == ERROR_SUCCESS)
    {
    // Get the class name and the value count.
    retCode = RegQueryInfoKey(
    key, // key handle
    achClass, // buffer for class name
    &cchClassName, // size of class string
    NULL, // reserved
    &cSubKeys, // number of subkeys
    &cbMaxSubKey, // longest subkey size
    &cchMaxClass, // longest class string
    &cValues, // number of values for this key
    &cchMaxValue, // longest value name
    &cbMaxValueData, // longest value data
    &cbSecurityDescriptor, // security descriptor
    &ftLastWriteTime); // last write time

    // Enumerate the email accounts subkeys, until RegEnumKeyEx fails.

    if (cSubKeys)
    {
    wprintf(TEXT("\nNumber of email accounts used: %d\n"), cSubKeys);

    for (i = 0; i < cSubKeys; i++)
    {
    cbName = MAX_KEY_LENGTH;
    retCode = RegEnumKeyEx(key, i,
    achKey,
    &cbName,
    NULL,
    NULL,
    NULL,
    &ftLastWriteTime);
    if (retCode == ERROR_SUCCESS)
    {
    wprintf(TEXT("(%d) %s\n"), i + 1, achKey);
    }
    }
    }
    }
    }

    //

    :)
     
    Michael Haephrati, Aug 19, 2018
    #1
  2. Kari Win User

    different user accounts, only one email address?


    Hi Geoff, welcome to the Ten Forums.

    In Windows 10 it is not possible to use the same MS account for more than one user account on the same computer. If User-A signs in with an MS account User-A@AnyEmail.com, that MS account (email address) cannot be used to sign in any other user than User-A. User-B needs to use either a different MS account or a local account. However, you can use the same MS account on multiple computers.

    There's no way to work around this restriction.

    In your case I would simply install Windows 10 on both computers with a local admin account, then create an additional standard user account as an MS account on both computers using the same email address. If any of the two computers requires the gaming account, too, as you explained I would make this account a local account.

    Tutorials:
     
  3. Bastet Win User
    Win10 Mail - where's the address book?


    That’s now the People app. Finder the user's email address :)
    If you know the contact's name or email address & they’re listed in the People app, you can start typing the first few letters of their name or email address and Mail for Windows 10 will suggest matching contacts.
     
    Bastet, Aug 19, 2018
    #3
  4. Sam Vimes Win User

    Finder the user's email address

    Mail App: Removing drop down email address suggestions


    I'm not a big fan of the MS Mail program and don't really use it for serious stuff but somehow or other if I create a new email then as I start to enter the recipients address a whole load of suggestions will appear. I don't have any contacts in the People app so I'm not sure where these come from.

    The question is how can I clear this list so that I no longer get the suggestions?

    Thanks
     
    Sam Vimes, Aug 19, 2018
    #4
Thema:

Finder the user's email address

Loading...
  1. Finder the user's email address - Similar Threads - Finder user's email

  2. Windows 11 swapped my administrator user email address with my alternate email address

    in Windows 10 Gaming
    Windows 11 swapped my administrator user email address with my alternate email address: I recently had my Windows 11 laptop reset to factory settings and windows reinstalled. I set it up correctly with only one account, myself as admin with my primary email address. I'm the only User so there are no other user sign-in options. I was in the process of reintalling...
  3. Windows 11 swapped my administrator user email address with my alternate email address

    in Windows 10 Software and Apps
    Windows 11 swapped my administrator user email address with my alternate email address: I recently had my Windows 11 laptop reset to factory settings and windows reinstalled. I set it up correctly with only one account, myself as admin with my primary email address. I'm the only User so there are no other user sign-in options. I was in the process of reintalling...
  4. Email addresses

    in Windows 10 Customization
    Email addresses: I have an email address on my computer for a company that I no longer work for. How can I remove that email from my account? https://answers.microsoft.com/en-us/windows/forum/all/email-addresses/12e4eef4-979a-455e-9771-4cf590e85a18
  5. Cannot change email address for user account

    in Windows 10 Customization
    Cannot change email address for user account: The email address no longer exists and it needs to be updated to new email address. The Manage option does not allow to change the email address associated with this user account. Someone with an authoritative solution Microsoft?, PLEASE. Why is something so simple...
  6. email address

    in Windows 10 Software and Apps
    email address: i have unwanted email address when i send my emails how can i delete them https://answers.microsoft.com/en-us/windows/forum/all/email-address/b113c0f0-30e5-4ea8-9d6b-317889dd38f1
  7. Email address

    in Windows 10 Customization
    Email address: OK, I have been told that once you have set up your Microsoft account you cannot change your signin. I am trying to get away from AOL and that address is what I set my account up with. Is there anyway to change it or do I have to open up a brand new account. I am...
  8. Email address

    in Windows 10 Customization
    Email address: How do you eliminate unwanted names that appear when you begin entering an email addressee name? https://answers.microsoft.com/en-us/windows/forum/all/email-address/f00d841f-acd3-4d7d-a208-aea9873673b6
  9. Fetching the user's email address

    in AntiVirus, Firewalls and System Security
    Fetching the user's email address: I found out that using the stored email used to sign in with Windows, Microsoft Live, Skype is the best way to determine (in all probability) the active email address of the user. Windows stores used email accounts used as "Live ID" in the "UserExtendedProperties" key in...
  10. Email address

    in Browsers and Email
    Email address: I tried to send an email using live.com, my Microsoft address, and their address was invalid yet when I put the exact address the recipient in Gmail it worked. Any explanations please. Thank you Peter 47419