Set login domain based on username

joaomfigueiredo 1 Reputation point
2022-05-19T13:32:18.107+00:00

Hi,

I have a set of computers which can login in to DOMAIN1, DOMAIN2 and to local accounts. I have set DOMAIN1 has the default because it's the most used. However, users without an account in DOMAIN1 must login in DOMAIN2, typing "DOMAIN2\public". I would like that simply "public" would be recognized as a DOMAIN2 account and it would be loged in to it, sparing the user of typing "DOMAIN2\". I suppose this is doable since when I type "Administrator" it automatically logs in to a local account.

Thank you!

Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-30T09:04:46.177+00:00

    Hello joaomfigueiredo,

    Thank you for posting here.

    From the following link, we can see:
    By default the domain that the workstation is joined to is listed as the default domain name and other domain users have to always provide the user name as domain\username to login correctly.

    I have done two tests below:

    Test 1
    I have two domain, a.com and b.com.
    There is a domain-joined machine PC1 in a.com domain.
    There is a domain user account named u1 in a.com domain.
    There is a domain user account named t1 in b.com domain.

    Tip: a.com and b.com are two forests with two-way forest trust.

    By default a.com is the default domain.
    When I use u1 to login to PC1, I enter the login name u1 (not A\u1), and then I can login directly to the domain a.com.
    If I logon PC1 using the user account t1 in domain2 b.com, I must type B\t2.

    Test 2
    If I set b.com as the default domain on PC1.
    When I use t1 to login to PC1, I enter the login name t1 (not B\t1), and then I can login directly to the domain b.com.
    If I logon PC1 using the user account u1 in domain1 a.com, I must type A\u1.

    Use GPOs to change default logon domain name in the logon screen
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/change-default-logon-domain-name

    I am sorry, I couldn't search any information about your desired setup or requirement.
    However, based on the test in my lab above, maybe there is no such setting that allows the user to recognize domain2 without typing "DOMAIN2\".

    Hope the information above is helpful. If anything is unclear, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.