Batch Script Net Computer
Net Computer
net computer
adds or removes a computer attached to the windows domain controller.
Syntax
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