Windows 7 Support
Become a Fan of PCHF on Facebook!
User Reviews - Add Yours!
The PCHF Lounge
Go Back   PC Help Forum » Operating Systems » Windows Server
Register for a Free Account

Windows Server - Active Directory Issue (Pulls hair out) posted in the Operating Systems forums; 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 ...

Advertisement
Advertisement

Reply
Scan your PC for Errors
Old 07-11-2007   #1
Elite Member
 
double_a_ron's Avatar
 
Join Date: Sep 2005
Location: Canada
Posts: 896
PC Experience: Very Experienced
Default 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?
__________________
//Prework\\\///PCHF RULES\\\///Did we help? Please Donate\\\

CompTIA A+ Certified, MCDST



Did we help? Please hit that Thanks button.

Last edited by vger; 2 Weeks Ago at 12:59 AM.
double_a_ron is offline   Reply With Quote
Old 07-16-2007   #2
Web Developer
 
DarkLord7854's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, FL
Posts: 1,862
PC Experience: Of Epic Proportions
Default

Oy,

Seeing as this is somewhat an out-of-depth question, may I point you to www.forums.bit-tech.net ? They have a web dev community there as well and I'm fairly certain they could help you as well
__________________
Custom WordPress, ZenCart, Joomla, vBulletin, etc installs and skinning, PM/E-Mail for a quote
DarkLord7854 is offline   Reply With Quote
Old 07-16-2007   #3
Elite Member
 
double_a_ron's Avatar
 
Join Date: Sep 2005
Location: Canada
Posts: 896
PC Experience: Very Experienced
Default

Cheers for the link, I'm going to check it out.

Actually, it doesn't seem to be working.
__________________
//Prework\\\///PCHF RULES\\\///Did we help? Please Donate\\\

CompTIA A+ Certified, MCDST



Did we help? Please hit that Thanks button.
double_a_ron is offline   Reply With Quote
Old 07-16-2007   #4
Web Developer
 
DarkLord7854's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, FL
Posts: 1,862
PC Experience: Of Epic Proportions
Default

Ah, my bad, it doesn't take the www.

bit-tech.net Forums - Powered by vBulletin

There we go
__________________
Custom WordPress, ZenCart, Joomla, vBulletin, etc installs and skinning, PM/E-Mail for a quote
DarkLord7854 is offline   Reply With Quote
Old 07-21-2007   #5
Tech Member
 
GaRHaR's Avatar
 
Join Date: Jul 2006
Location: Western Australia
Posts: 6,061
PC Experience: Elite PC Guru
Default

hey DAR...how'd you go on that other forum? I only just saw this question now and i'll take a look for you if they haven't helped you
GaRHaR is offline   Reply With Quote
Old 07-24-2007   #6
Elite Member
 
double_a_ron's Avatar
 
Join Date: Sep 2005
Location: Canada
Posts: 896
PC Experience: Very Experienced
Default

Actually, I haven't really gotten to the site much, just haven't had much time. I'm going to mark the thread as resolved even though I haven't figured out the cause of the issue, I simply changed all the users one OU at a time in the GUI.
__________________
//Prework\\\///PCHF RULES\\\///Did we help? Please Donate\\\

CompTIA A+ Certified, MCDST



Did we help? Please hit that Thanks button.
double_a_ron is offline   Reply With Quote

Reply

Bookmarks

Tags
active, directory, hair, issue, pulls, resolvedactive, Solved:

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




All times are GMT. The time now is 09:51 AM.
Powered by vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2