Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-12-05
4
Medium Priority
?
2,502 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
[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
4 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

It is a common problem that often server suffers from the lack of space on system volume. Old servers or new ones from vendors come with preformatted small volume - 5-6GB in total and after installing updates or applications the free space on system…
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
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…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

618 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