Answer the question
In order to leave comments, you need to log in
Import mail contacts from csv file to AD. What is the problem?
There is a script through which I export mail contacts from a csv file:
Import-CSV -Path "C:\tmp\users.csv" -Delimiter ";" | ForEach-Object -process {New-ADObject -Path "OU=*,OU=*,DC=domain,DC=local" -Name $_.Name -Type Contact -DisplayName $_.Name -OtherAttributes @{'givenname' =$_.givenname; 'mail'=$_.emailaddress; 'proxyAddresses'=$_.smtp; 'targetAddress'=$_.smtp; 'mailNickname'=$_.Surname; 'sn'=$_.SurName;}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question