[Resolved]Active Directory Issue (Pulls hair out)
Ok I've got one that's interesting.
I'm currently trying to fine tune a domain I've been working on for some time now for my school.
I'm having a strange issue setting my home folders for my users.
Domain name: trios.windsor.lan
DC name: DC_TRIOS
as far as OUs I have "instructors" and "students" and in the students OU there is another OU called "accounts" (further subdivided by course)
I've written and successfully run the user creation scripts (200+ users) the last user creation script calls my "DSMOD" script which essentially is the following command.
dsquery user "ou=accounts,ou=students,dc=trios,dc=windsor,dc=la n" -limit 0 | dsmod user -profile \\dc_trios\profiles\$username$ -hmdir \\dc_trios\home\$username$ -loscr \\dc_trios\logonscript.bat
Note: I've also tried the %username% variable to the same effect.
Essentially that pipes the results of the dsquery (of all student accounts) to the dsmod command and the results are apparently proper (the home folder path and mapped drive are correct if I open the accounts properties in the GUI). however the home folders are not created, as they should be and when I test a user account the mapped drive brings me right to the c:\home directory on the DC which is also the file server, as opposed to the should be created folder within that directiory.
Here's where it gets weird.
If I open up the properties of a user account, then highlight the UNC path in the "home folder" section, cut it and paste it back in the same spot and hit Okay, it creates the folder and the mapped drive functions normally.
I've discovered that I can at least select all the user accounts in any given OU and modify the UNC in one shot, but why does it not work when i run it from a command line?
|