We use a script to create a new AD user. Part of that script sets the users profile to a logon batch file and then creates a home drive letter and a home directory on the NetApp filer. The path is \\XX-XXX\home$\username.
The script work fine, but it doesn't create the home directory on the NetApp. I've tried deleting the line in the script and substituting:
Set-ADUser <user> -HomeDirectory "<folder path>" " -HomeDrive "<Drive letter>"., but still no go.
YET, when I go into the user's profile, change 1 letter in the path, it then creates the home folder.
NetApp tech support, while great, couldn't find the line (we used packet trace while repeating the process with a test account) that actually generated the command to create the folder.
Any ideas? I create a lot of users, especially temporary and adjunct professors and since school with start in a few weeks, I'm already getting swamped. Anything to help automate and streamline this (without me having to manually manipulate the profile) would be greatly appreciated.