Add or Remove a Computer from the Domain, Command-line style

Posted On 2008-07-07 by dwirch
Keywords: Command Line Style
Tags: Windows Commandline Scripting Tip Windows
Views: 11157

Using a simple command, you can add or remove a computer to a domain.

You must be a domain administrator to run this command

Open a command prompt:

net computer \\computername /add
to add a computer to the domain

net computer \\computername /del
to remove a computer from the domain.

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

About the Author

dwirch has posted a total of 190 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links