?
Solved

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

Posted on 2007-12-05
4
Medium Priority
?
2,519 Views
Last Modified: 2010-04-21
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"
0
Comment
Question by:uvwaves
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
souseran earned 150 total points
ID: 20416519
I don't think you can do that with DSAdd. See the script in this message:

markdmac (MIS)        25 Jul 04 18:41

http://www.tek-tips.com/viewthread.cfm?qid=876940

0
 

Author Comment

by:uvwaves
ID: 20424256
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
0
 

Author Closing Comment

by:uvwaves
ID: 31412914
I will give you the points.  I ended up creating a vbs script to do what I wanted.  Thank you for your input.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Find out what hardware you have and get the most up to date drivers from the manufacturer! Automatically Get Your Drivers There is a number of great programs that will detect your hardware and find drivers for you automatically! Here is a link …
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

864 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