|
2 X Domain Controllers
My script reads a excel file and creates users into AD. That works fine.
Now when using this script it puts in the Home folder properties into the User account, but it does not create the physical folder (this is not located on the DC's).
So I have added at the bottom of my 1st script that creates the users, to create the home folder. This works as well.
Now when I go to change permissions on these folders, the CACLS command comes back with a error saying that the user has not been built, because the users that are being built have not been replicated to the other Domain Controller.
So I have 2 choices, run the Create user script. wait for 15 minutes until the DC's have replicated and then run the Folder creation and permissions script.
or I can force a Domain Sync and run the Folder Creation script in the 1st script.
Does that make sence.
I do not have my script with me here so I will post it tomorrow.
Richard Farthing
|