Shawn,
Take a look at this link as well.

https://www.microsoft.c om/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/datacenter/dsadmin_computers_add_account.asp

https://www.microsoft.com/techn et/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/datacenter/DS_command_line_tools.asp

Here is a converted piece of code to add Workstations, but I don't think it handles NT 4 workstations necessarily.

Don't forget to hit up Howard on this as well. He works for a Company that absorbs a lot of smaller Companies, so he may have another method as well.

code:
$strComputer = 'ABC-TEST'
$ADS_UF_PASSWD_NOTREQD = '&h0020'
$ADS_UF_WORKSTATION_TRUST_ACCOUNT = '&h1000'

$objRootDSE = GetObject('LDAP://rootDSE')
$objContainer = GetObject('LDAP://OU=Computers,DC=mycompany,DC=com')

$objComputer = $objContainer.Create("Computer", "cn=" + $strComputer)
$objComputer.Put ("sAMAccountName", $strComputer + '$')
? 'Adding Computer Account error was: '+@ERROR+' - '+@SERROR
$objComputer.Put ("userAccountControl", $ADS_UF_PASSWD_NOTREQD Or $ADS_UF_WORKSTATION_TRUST_ACCOUNT)
? 'Adding Account Control error was: '+@ERROR+' - '+@SERROR
$objComputer.SetInfo

Sorry about the code mess. Forgot that General is not HTML enabled.

[ 07. August 2003, 01:29: Message edited by: NTDOC ]