Link to home
Start Free TrialLog in
Avatar of cawasaki
cawasaki

asked on

script to create mailbox user and AD account from csv file

hello,

i have a csv file like this and i need to create ad account + mailbox, i have 2008 r2 AD and exchange 2013 server:

on csv, i have an attrbute tha i have added my self to active directory (ADSPECIAL)

the csv file:

givenName,SN,UPN,Alias,ADSPECIAL,OU
user1,Super01,u1.s01@domain.com,u1.s01,ATTRIBUTE001,domain.com/Users/california
...........

set the same password for all account

thanks for help
SOLUTION
Avatar of Simon Butler (Sembee)
Simon Butler (Sembee)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cawasaki
cawasaki

ASKER

hello,

already tested this web site script and dont work for me
Hi,

Here's a article about Create bulk AD User and mailbox from CSV file for Windows Server 2008 R2, for your reference:
https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Create-AD-users-97d6ee9c

Besides, you can contact Microsoft Exchange Team for further troubleshooting, if it can't work.

Regards,
Why doesn't it work?
That is a standard command for creating the objects. However with all CSV files you need to ensure the fields are named 100% correctly. That is the most common reason for the script failing.

Simon.
Hi simon,

its work, but th problem now is with attribute i have created my self in active directory, the name of attribute are "ADSPECIAL", how i can set value for every user for this attribute?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial