Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DSADD USER  & Home Directory Folder Creation

Posted on 2006-11-24
2
Medium Priority
?
3,277 Views
Last Modified: 2009-06-16
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
0
Comment
Question by:wpgatrel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
Toni Uranjek earned 150 total points
ID: 18011862
Dsadd will not create user home folder and this behaviour is by default. Further more, %username% should be replaced with $username$. %username% will return username of user which executes dsadd command, which is not usefull. And at the end apparently dsadd has a bug, if you use proper syntax you would end up with same folder for all users: \\severname\sharename\$username$. :) However, with dsmod user the switch -hmdrv works fine if you use it with proper syntax: \\severname\sharename\$username$.

Because Windows 2003 Active Directory Users and Computer allows to edit the same property on multiple objects I would suggest taht you select all user accounts, right click, select Properties and the go to Profile tab, select checkbox Home folder, select Connect to M:, enter \\servername\sharename\%username% and click OK. All users home folders will be instantly created. Of course shared folder should be prepared in advance.

And just of curiosity what is the point of hidding shared folder?
0
 
LVL 1

Author Comment

by:wpgatrel
ID: 18012045
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.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

722 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