Join Windows Server 2022 to a Domain

Join Windows Server 2022 to a Domain KB ID 0001809

Problem

To join Windows Server 2022 to a Domain (Local Domain). The end proces is the same as it’s always been, they’ve just made the job of getting to there a little more convoluted, (this is the same with Windows 11).

Solution: Join Windows Server 2022 to a Domain

Whilst logged in as a (local) administrative user, click the Windows button > Settings.

Join Windows Server 2022 to a Domain Graphically

System.

Join Windows Server 2022 to a Domain Graphically

About.

Join Windows Server 2022 to a Domain Graphically

Advanced system settings.

Join Windows Server 2022 to a Domain Graphically

Computer name > Change.

Join Windows Server 2022 to a Domain Graphically

Select the domain radio button > Type in the domain name (must be resolvable in DNS, if in doubt try ‘pinging‘ the domain name” > OK > Enter a domain credential that has right to add machines to a domain. (Here I’m using the domain admin account, but normally a domain user can add a number (10 by default) of machines to a domain) > OK.

Join Windows Server 2022 to a Domain Graphically    

BUG / BAD UI ALERT: Minimise the window (because the popup box you are waiting for will appear behind it (please fix this Microsoft!)) > OK.

Join Windows Server 2022 to a Domain Graphically

OK > OK.

Join Windows Server 2022 to a Domain Graphically

Close.

Join Windows Server 2022 to a Domain Graphically

Restart Now.

Join Windows Server 2022 to a Domain Graphically

Post reboot, log in with domain credentials.

Join Windows Server 2022 to a Domain Graphically     

PowerShell: Join Windows Server 2022 to a Domain

Open an Administrative PowerShell window.

Join Windows Server 2022 to a Domain PowerShell

Use the following command;

Add-Computer -DomainName pnl.com

Join Windows Server 2022 to a Domain PowerShell

Enter a domain credential that has right to add machines to a domain. (Here I’m using the domain admin, but normally a user can add a number (10 by default) of machines to a domain) > OK.

Join Windows Server 2022 to a Domain PowerShell

After a few seconds, it should tell you to reboot, you can do so by entering;

Restart-Computer

Join Windows Server 2022 to a Domain PowerShell

PowerShell: Remove Windows Server 2022 from a Domain

Open an Administrative PowerShell window. Use the following commands;

Remove-Computer
Restart-Computer

Remove Windows Server 2022 from a Domain PowerShell

Note: This will place the machine in a workgroup called WORKGROUP.

Related Articles, References, Credits, or External Links

How to Join Windows 11 to a Domain

How to Join a Windows Domain

Cannot Join Domain?

Author: PeteLong

Share This Post On

Submit a Comment

Your email address will not be published. Required fields are marked *