You can direct the ADSI action to individual servers, but you can not duplicate the same account creation on both servers as you will get two different accounts that will collide and result in the replacement of one with the other. In AD the last write wins during domain replication.
If you know that the home directory for user1 is on server2 then you can create the account on server2 with the home directory and let it replicate back to server1. If the home directory for user2 will exist on server1 then create the account there and let it replicate to server2.
You can use the LDAP format that specifies the target container like:
code:
"LDAP://$server/$ADS_NAME_TYPE_1779"
$adsObject = GetObject("LDAP://" + $server + "/OU=Users,OU=QEH Users,DC=qeh-tr,DC=sthames,DC=nhs,DC=uk")
[ 08. December 2002, 15:39: Message edited by: Howard Bullock ]