• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Command to Add or Remove Computer from Domain

Command to Add or Remove Computer from Domain

Posted on March 21, 2018 by Mitch Bartlett 3 Comments

Using a simple command, you can add or remove a Windows computer to a Microsoft Windows domain remotely from another computer.

Add a Computer to the Domain

Execute this command from a domain controller:

  1. Open a command prompt.
  2. Type net computer \\computername /add, then press “Enter“.

Execute this command from a workstation where you have domain admin rights. Change the words in italics to suit your situation:

  • netdom join computername /domain:domainname

Remove a Computer from the Domain

Execute this command from a domain controller:

  1. Open a command prompt.
  2. Type net computer \\computername /del, then press “Enter“.

Execute this command from a workstation where you have domain admin rights. Change the words in italics to suit your situation:

  • netdom removeĀ computername /domain:domainname

These command are especially valuable if you are using batch files.

You Might Also Like

  • Windows: How to Switch Domain Controller (Client)Windows: How to Switch Domain Controller (Client)
  • Use Active Directory Domain Services to Block WebsiteUse Active Directory Domain Services to Block Website
  • Active Directory: How to Check Domain and Forest Functional LevelActive Directory: How to Check Domain and Forest…
  • Windows: Command to Find MAC AddressWindows: Command to Find MAC Address
  • How to Access Device Manager from the Command PromptHow to Access Device Manager from the Command Prompt
  • Windows: Create Folders From Command LineWindows: Create Folders From Command Line
  • Windows: Clear Java Web Cache Via Command LineWindows: Clear Java Web Cache Via Command Line
  • Windows: Create Command Prompt That Opens To Specific Folder LocationWindows: Create Command Prompt That Opens To…

Filed Under: Windows Tagged With: win7, Windows 10

Reader Interactions

Comments

  1. oVer says

    November 2, 2018 at 4:04 am

    Holla, i got some problems with a hpelitebook 820 g1 that is domain related.

    My account got admin rights, but i am unable to change anything that needs admin rights, due too the need to acess the domain.

    I am also unable to make admin changes in cmd.exe while logged in on windows.
    I am able to make some admin changes on the login screen with cmd.exe.

    Any tips how to leave the domain so that i can acess my full admin rights for the computer, without beeing locked out by the requested to log in to the domain?

  2. febry says

    August 27, 2018 at 10:09 pm

    hy mitch, the next problem
    if I can’t access Windows Server, can I do it on my local computer?
    the problem is I lost access on windows server.

    thanx

  3. Roy says

    July 23, 2018 at 5:10 am

    Thanks for the info Mitch. Upon running both commands, does it show up in a log.
    Also, I would like to create an icon on my desktop that will remove the pc from a domain just by clicking the icon and I would also like an icon to perform the rejoin option every morning.

Did this help? Let us know! Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • WhatsApp Groups: How to Stop Others From Adding You
  • Change your Google Voice Number
  • Set Gmail to Compact View
  • How to Text Internationally
  • What Happens When You Compress a File?
  • How to Fix Touchscreen Not Working on Android
  • Windows 10: Set Different Wallpaper For Dual Displays
  • How to Use Vivaldi Browser on Android

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

  • Public Domain

© Copyright 2019 Technipages · All Rights Reserved · Privacy