How do I find my domain name in windows

Jimmy2Door 20 Reputation points

How do I find the domain name in windows 10 or 11? I tried in the command prompt but had no success.

Thanks for your help.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,136 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,896 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yanhong Liu 4,815 Reputation points Microsoft Vendor


    Thank you for posting in Q&A forum.

    Please open a command prompt as an administrator, in the command prompt, type "whoami" and press Enter. This will return the domain and username in the following format.

    As shown below:User's image

    Reference link: How to find my domain name and username on Windows 11. – GateKeeper (

    I hope the information above is helpful.

    Best Regards,

    Yanhong Liu


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

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. akinbade abiola 8,300 Reputation points

    Hello Jimmy2Door,

    Thanks for your question.

    You can do this by following the steps below:

    1. Press Win + I on your computer and navigate to system > about
    2. Under device specifications you will see 'Related': Domain or workgroup.
    3. Click this and it will take you to a system properties panel where you will see the domain. If it shows "WORKGROUP", your computer is not part of a domain.

    Alternatively open Command prompt and run below:

    systeminfo | findstr /B /C:"Domain"

    You can mark it 'Accept Answer' and 'Upvote' if this helped you



    0 comments No comments