Have a Question?
< All Topics
Print

Methods to Join Windows Computer to Domain – PS/CLI

Methods to Join Windows Computer to Domain - PS/CLI

Method 1 – Add Windows 11 Computer to Domain using PowerShell

You can join a Windows 11 workgroup computer to AD domain using PowerShell.

  • Launch the PowerShell as administrator on Windows 11 computer.
  • Run the following command to add or join Windows 11 computer to domain.
  • Add-Computer -DomainName “Domain Name” -Credential “Domain Username”
  • Press enter, and you will be prompted to enter your domain user password.
  • Restart the computer to complete the domain join process.

Method 2 – Join Windows 11 to a Domain using Command line

You can use the command prompt to join Windows 11 computers to a domain.

  • On Windows 11 computer, click Start, and launch the CMD as administrator.
  • Run the following command to add Windows 11 to Domain.
  • netdom join %computername% /domain:yourADdomain /UserD:username /PasswordD:specifypassword
  • Restart the Windows 11 computer to complete the domain join.
Table of Contents