
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
- Windows 11 Pro, Enterprise or Education. Home can't join a domain.
- The PC uses a DNS server that knows the domain, usually your domain controller.
- An account with rights to add computers to the domain.
Through settings
- Open Settings > System > About.
- Select Domain or workgroup (or Advanced system settings > Computer Name tab).
- Select Change, choose Domain and type the domain name, for example contoso.local.
- Sign in with an account that has the right permissions.
- Restart the PC.


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?
- Error The domain could not be contacted: check the DNS settings and that you can ping the domain controller.
- No permissions? Ask a domain admin, or pre-create the computer in Active Directory Users and Computers.
- Need AD admin tools on your own PC? Read install RSAT.
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.
Nederlandstalige versie: Een Windows 11-computer lid maken van een Active Directory-domein
Related articles
▸Install Remote Server Administration Tools (RSAT) on Windows 11Install RSAT on Windows 11 through optional features or PowerShell to manage Active Directory, DNS and Group…
▸Add a domain as a UPN suffix in Active DirectoryAdd your public domain as an alternative UPN suffix in Active Directory, so users sign in to Microsoft 365…
▸Add Your Work or School Account to Windows 11Add your Microsoft 365 work account to Windows via Access work or school, without your organization managing…
▸The most useful CMD commands for WindowsAn overview of handy Command Prompt commands: network, system repair, Group Policy, processes and files, each…
▸Add a user in Windows 11 with a Microsoft or local accountAdd a user in Windows 11 with a Microsoft account or a local account, make someone an admin and set up Family…