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 /B "Domain"

The output as follows means that your computer is a part of a domain global.net.intra:

Domain: global.net.intra

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

Domain: 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).