Posted on 2009-02-18
Last Modified: 2012-05-06

I have hundred users to add in my active directory. I am using ldifde.exe to create the accounts.
It works fine except one thing :
If I create an account manually and specify the home directory in the Profil tab, the directory is
automatically created in the shared folder (with the correct authorizations).
If I create an account using ldifde the home directory is not created !!!

Just in case I also did a test using csvde... Same problem !

Here is a copy of my ldif file :
dn: CN=user2,OU=Enseignants,OU=Utilisateurs,DC=mysite,DC=fr
changetype: add
objectClass: user
accountExpires: 0
cn: user2
countryCode: 0
givenName: user2
distinguishedName: CN=user2,OU=Enseignants,OU=Utilisateurs,DC=mysite,DC=fr
instanceType: 4
displayName: user2
name: user2
userAccountControl: 520
homeDirectory: \\srv\Users\enseignants\user2
homeDrive: U:
profilePath: \\srv\profils$\user2\profile
sAMAccountName: user2
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=mysite,DC=fr

Any tip ?  Is it possible? I forgot something ?
I don't really want to have another script just to create folders

Question by:wwalschaerts
    LVL 82

    Accepted Solution

    You'll have to script that.
    The functionality to create the home folder is built-in into the ADUC console (only!), it's nothing that somehow inherent to creating a user in AD.
    LVL 13

    Expert Comment

    LDIFDE and CSVDE will not automatically create these folders.

    If you are using the ADUC Console, it makes the appropriate calls to the host server to create the files and appropriate permissions, but LDIFDE can not do this.

    Here is a link to a thread that mentions this. Close to the bottom of the thread, my comments are confirmed:

    Author Closing Comment

    Sorry for the delay... I was looking for a way without script  :-(
    Well, this is not really the solution but as there is no solution...
    LVL 13

    Expert Comment

    Thanks ;(

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    As network administrators; we know how hard it is to track user’s login/logout using security event log (BTW it is harder now in windows 2008 because user name is always “N/A” in the grid), and most of us either get 3rd party tools, or just make our…
    Starting in Windows Server 2008, Microsoft introduced the Group Policy Central Store. This automatically replicating location allows IT administrators to have the latest and greatest Group Policy (GP) configuration settings available. Let’s expl…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now