Solved

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

Posted on 2007-12-05
4
2,416 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
4 Comments
 
LVL 26

Accepted Solution

by:
souseran earned 50 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
need to save documents to standard tiff files 9 56
Start/Stop Windows services remotely over the LAN 7 67
TaskManager all tabs values are 0% 4 95
SQL Server memory Issue 7 136
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 …
1. Start | Settings | Printers and Faxes. 2. Go to the File Menu. 3. Select Server Properties. 4. Select the Drivers tab. 5. Select the printer you need information about. 6. Once again select Properties. You should get a list of the files requ…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 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