💻 Join a Windows 11 PC to a Domain via Command Prompt

💻 Join a Windows 11 PC to a Domain via Command Prompt
Manufacturer
Operating System(s)

Here’s a clean, focused tutorial on joining a Windows 11 PC to a domain using Command Prompt only.

💻 Join a Windows 11 PC to a Domain via Command Prompt

This method uses the built-in netdom tool (part of Windows Server tools). It’s fast, script-friendly, and commonly used by IT admins.

✅ Requirements

Before you start:

  • Windows 11 Pro, Enterprise, or Education
  • Connected to the company network (or VPN)
  • Domain name (e.g., company.local)
  • Domain username/password
  • DNS set to your domain controller

🔧 Step 1: Open Command Prompt as Administrator

  1. Click Start
  2. Search for cmd
  3. Right-click Command Prompt
  4. Select Run as administrator

🔗 Step 2: Run the Domain Join Command

Use this command:

netdom join %computername% /domain:company.local /userd:company\username /passwordd:*

 

What this does:

  • %computername% = your current PC name
  • /domain: = your domain
  • /userd: = domain user with permission
  • /passwordd:* = prompts you securely for the password

👉 Example:

netdom join %computername% /domain:corp.local /userd:corp\jsmith /passwordd:*

🔑 Step 3: Enter Your Password

  • After pressing Enter, you’ll be prompted to type your password
  • Nothing will show as you type — this is normal

🔁 Step 4: Restart the Computer

Once you see a success message:

The command completed successfully.

Restart your PC:

shutdown /r /t 0

🔐 Step 5: Log Into the Domain

After reboot:

✅ Verify the Domain Join

Run this command:

systeminfo | findstr /B /C:"Domain"

You should see:

Domain: company.local

⚠️ Troubleshooting

❌ “The network path was not found”

  • DNS is not pointing to the domain controller
  • Fix your DNS settings

❌ “Access is denied”

  • Your account doesn’t have permission to join computers
  • Contact IT admin

❌ “The specified domain either does not exist”

  • Check spelling of domain
  • Make sure you're on the correct network/VPN

netdom not recognized

  • Install RSAT tools:
    • Go to Settings → Apps → Optional Features
    • Add: RSAT: Active Directory Domain Services

💡 Bonus Tip

If you're working in an environment using Active Directory, this method is ideal for automation scripts and remote deployments that can be easily put into a batch file .bat

Force Cache (Faster Mirror)