Skip to content

Batch Script Net Computer

Learn how to use the net computer command in Windows to add or remove computers from a domain controller with syntax and practical examples.

net computer adds or removes a computer attached to the windows domain controller.

Syntaxbatch
net computer \\computername {/add | /del}

Example

The following command adds the machine with the name dxbtest to the domain where the Windows domain controller exists.

net computer \\dxbtest /add
Navigation