Link to home
Start Free TrialLog in
Avatar of wpgatrel
wpgatrel

asked on

DSADD USER & Home Directory Folder Creation

When using the DSADD USER command there is the option to specify the homedirectory value.  Does the exact location have to exist prior to running the DSADD USER command or should it generate the location based off of what is specified in the command?  At the moment, the account is generated properly in AD and all properties are filled properly by the command.  However, it is not generating the users home directory within the homedirectory share.  I'm just wanting to make sure on whether or not it should be creating the folder for the user when running the DSADD USER command.  I have not been able to find any documentation stating anything other than being able to specify the option in the command syntax.

Here is what I am doing so far..

I have a share called 2008$ and the homedir path for the user would be \\server\2008$\%username%, with %USERNAME% being the true samAccountName.

Here is my "dsadd user" command that is being run.
dsadd user "CN=2008 User,OU=2008,OU=Students,DC=Alpha,DC=local" -samid 2008.User -upn 2008.User@Alpha.local -fn 2008 -ln User -display "2008 User" -pwd rWNy5DCp -mustchpwd No -hmdir \\alpha-dc-1\2008$\2008.User -hmdrv M -memberof CN=Students,OU=Students,DC=Alpha,DC=local
ASKER CERTIFIED SOLUTION
Avatar of Toni Uranjek
Toni Uranjek
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wpgatrel
wpgatrel

ASKER

The %username% was just stuck in as a variable in my example.  The true login would be in it's place when the command would be run.

I understand that a mass propery change would work, was just looking for a way to get around it.  

The reason for hiding the shared folder is to keep users from browsing the network and seeing it in the shared folder list for the server.