The information in this article applies to:
SUMMARYAn Windows NT network administrator may have to add a large number of Windows NT Workstations or Non-Domain Controller Servers to a domain's Machine Account database, which is accessed and maintained by the Server Manager user interface. MORE INFORMATION
In situations where a network administrator is setting up a network with a
large number of new machine accounts, it may be advantageous to consider
using a simple batch file to add all of the new machine accounts.
NET COMPUTER \\computername [/ADD | /DELETE] Using NET COMPUTER Command in a Simple Batch FileThis example adds 5 new machine accounts to the domain:echo ***** Are you sure you want to add these accounts? ******* NOTE: The NET COMPUTER command listed in this article can only be used to add Windows NT Workstation or Windows NT Server (Non-Domain Controller role) machine accounts to the Server Manager's database. Also, this command or batch files that use this command should only be run at the Primary Domain Controller(PDC). Once the batch file is run the administrator can then synchronize the account database with the rest of the domain's Backup Domain Controller's (BDC's). Using the FOR Batch File Command in Conjunction with NET COMPUTERAnother way to accomplish this is to use the FOR command. The batch file command FOR lets your batch file repeat a command for a specific set of files. In this case, for the specific machine names we want to add to the Server Manager database:echo ***** Are you sure you want to add these accounts? ******* NOTE: Under Windows NT, the command line is limited to 256 characters. NET COMPUTER Errors
Using NET COMPUTER to Delete Many Machine AccountsYou can also remove many accounts by using the "\DEL" switch instead of the "\ADD" switch in the batch files shown above.Additional query words: prodnt
Keywords : kbsetup kbusage ntdomain nthowto NTSrvWkst |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |