1:35 PM

You can join a Windows 11 PC to a domain using PowerShell with the Add-Computer cmdlet. Here's how:

Basic command:

powershell (Run As Administrator)
Add-Computer -DomainName "yourdomain.com" -Credential (Get-Credential) -Restart