Link to home
Start Free TrialLog in
Avatar of uvwaves
uvwavesFlag for United States of America

asked on

DSAdd Utility. How can i place address info in as well?

I am writing a script using the dsadd utility for creating a user account in our OU. This particular script is designed for just single user creation. I have gotten the dsadd to do everything I want so far but I want to add address info into the creation process as well,i.e., Street, City, State, zip, & country.  I cannot find the right switches for this in any documentation and I tried the obvious, -state CA, etc.  which did not work.  
Here is the script thus far.  The admin enters in some info in manually establishing set variables

dsadd user "cn=%firstname% %minit% %lastname%, ou=info" -samid %username% -pwd password -fn %firstname% -mi %minit% -ln %lastname% -mustchpwd yes -desc "Created: %date%" -loscr xdlogon.bat -display "%firstname% %minit% %lastname%" -profile \\server\profiles$\%username% -hmdrv P: -hmdir \\%homesvr%\%username%$ -email "%firstname%.%minit%.%lastname%.company.com"
ASKER CERTIFIED SOLUTION
Avatar of souseran
souseran
Flag of United States of America 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 uvwaves

ASKER

Thanks for the link. That does not really address the question however. I will look into that script to see if that will work for us. Give me a few days to do that. I am short staffed right now. If so I will award the points to you. I was hoping maybe someone might know of some dsadd switches which are not listed. THanks
Avatar of uvwaves

ASKER

I will give you the points.  I ended up creating a vbs script to do what I wanted.  Thank you for your input.