Joining a Windows 11 PC to a domain

If your organisation still has on-premises Active Directory, you join a Windows 11 PC to the domain so users sign in with their domain account and Group Policy applies. This article shows how, through settings or with PowerShell, and the alternative for new PCs.

Before you start

Through settings

  1. Open Settings > System > About.
  2. Select Domain or workgroup (or Advanced system settings > Computer Name tab).
  3. Select Change, choose Domain and type the domain name, for example contoso.local.
  4. Sign in with an account that has the right permissions.
  5. Restart the PC.
Joining a computer to a domain in Windows 11
Domain join confirmation

With PowerShell

Open PowerShell as administrator and type:

Add-Computer -DomainName contoso.local -OUPath "OU=Laptops,DC=contoso,DC=local" -Restart

Add -NewName to rename the PC at the same time.

Not working?

Alternative: Microsoft Entra

For new PCs, Microsoft recommends joining them to Microsoft Entra ID and managing them with Intune. Read Entra join or hybrid join.

Read also

Install Remote Server Administration Tools (RSAT) on Windows 11
Entra joined, hybrid joined or registered: which should you choose?
Install and configure Microsoft Entra Connect (Azure AD Connect)

Nederlandstalige versie: Een Windows 11-computer lid maken van een Active Directory-domein


More in English