Hi there, i am in the process of configuring user provisioning in AR and i want to be able to create a home drive in two septate locations. In the user provisioning policy i have added "provision users with home folders" twice but it doesn't execute the second home drive instance.
I'm new to AR and there could be something i am missing or a way to use the script module to create it. I have tried both and for the script module i used the following:
function CreateHomeDir($createhomedir)
{
$userdn=$createhomedir.samaccountname
path = '\\share\homedrives\'
New-Item -name $UserDN -Type "directory" -Path $path
}