Solved

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

Posted on 2007-12-05
4
2,387 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Robocopy Skipped File 5 63
MySQLD Process AutoStarting 24 146
Malware on Windows 10 machine 14 99
unable to delete all specified values regedit 38 149
A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our 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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now