Check If Computer Is In Domain – CMD & PowerShell

Windows Domain Controller (DC) is a server that responds to security authentication requests within a Windows Domain (group of networked computers controlled by domain controller).

In this article i will show how to find out whatever a computer is a part of a Windows domain and how to get the name of the domain the computer is joined to using CMD and Powershell.

Cool Tip: Find out what domain controller am i connected to! Read more →

Check If Computer Is In Domain

Find out whatever a computer is a part of a Windows domain and get the domain name:

C:\> systeminfo | findstr /i "domain"

The output as follows means that your computer is a part of a domain


If you get the output as follows, it means that your computer is a part of a workgroup:


Domain vs. Workgroup: Domain is a group of computers that share a common user account database. Workgroup is a group of computers that share resources with each other in peer-to-peer network (without dedicated server to act as a domain controller).

Cool Tip: How to determine whether the current user is a Domain User account or a Local User account! Read more →

Was it useful? Share this post with the world!

10 Replies to “Check If Computer Is In Domain – CMD & PowerShell”

  1. Hello, I’m afraid the command does not return any information. I’ve tried it in 3 differente computers with CMD and PS.

    1. May be late.. but the D in “Domain” is case sensitive and must be Capitalized

  2. Muhammad Bukhari says: Reply

    It did on my Windows 10 PC (more than one PC).

    ran this at CMD:
    systeminfo | findstr /B “Domain”

    Got this as a reply:
    Domain: ***********.com

  3. If it doesn’t show a result, the computer may not be a member of a domain, but instead of a workgroup.

    1. systeminfo | findstr /i “domain”

      Will always shows result, Still if computer is not part of the domain, instead of showing a domain will show the workgroup.

  4. sorry for a late response but if this helps try running the cmd or PS as a admin and typing b /edit-Bomain

  5. Several users had issues with the cap letter in “Domain”

    I guess is way better command to run this:
    systeminfo | findstr /i “domain”

    So it wont matter the caps letters. Is the only “domain” word that will print on that command anyway.

    1. Updated. Thanks!

  6. shiva keshav says: Reply

    or else you can just enter this command in cmd “systeminfo” under domain section if your computer or laptop whatever the system is in domain it shows the your domain id. if your respective is not in domain you’ll get WORKGROUP.

  7. Just tested this and the command didnt get anything.
    The SYSTEMLANGUAGE is critical. My system is GERMAN, so i had to change “Domain” to “Domäne”!
    That worked.

Leave a Reply