Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
How to create Active Directory user account with powershell

I'm trying to add some users onto my active directory through PowerShell I would be greatful if anyone could provide me with a piece of code or any other method of how I could do this.


share|improve this question

marked as duplicate by Sam Nov 29 '11 at 10:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

When you say "any other method" I'm taking it as "aside from Powershell". I generally use CSV files to import and export users to and from AD. You can find more information on technet here: http://technet.microsoft.com/en-us/library/bb727091.aspx.

A question in regards to exporting via Powershell has been asked over at StackOverflow: http://stackoverflow.com/questions/4381943/how-to-export-csv-of-active-directory-objects. This may go some way to helping you.

Edit: Infact this may be more relevant: http://stackoverflow.com/questions/911402/how-do-you-add-users-from-a-csv-file-to-active-directory-ad-and-exchange-using (Apologies for the link bombing).

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.