Solved

Import ProxyAddresses attribute into ADUsers

Posted on 2015-01-09
5
204 Views
Last Modified: 2015-01-15
Hi there,

does anyone know how to import ProxyAddresses attribute into AD users?

I have found a way to export them. Command bellow will export ProxyAddresses attribute for all users in OU named Migration, into csv file.

 [PS] C:\>Get-ADUser -Filter * -SearchBase 'ou=Migration,dc=test,dc=com' -Properties proxyaddresses | select name, @{L=”ProxyAddresses”;E={$_.ProxyAddresses –join “;”}} | Export-Csv -Path c:\1\proxyaddresses.csv -NoTypeInformation

Now, I have a problem how to import them, in another forest for some users. Since the csv file contains filed  Name, then import should be done in a way to match Name in csv with Name (Display Name) of users in another forest.

Any idea? I have found few articles but no luck so far.

Regards,
0
Comment
Question by:Ivan
  • 4
5 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40540929
why don't you use group policy?
0
 
LVL 15

Author Comment

by:Ivan
ID: 40541176
Hi,

well..that didn't came to my mind...how would I do that?
0
 
LVL 15

Author Comment

by:Ivan
ID: 40541833
Maybe there is another way to do this.
Since all users should have ProxyAddresses in format SMTP:first_name.last_name@domain.com maybe I can get script to create that address for every user in specific OU?

Anyone got that? :)

Regards,
0
 
LVL 15

Accepted Solution

by:
Ivan earned 0 total points
ID: 40541848
Hi,

I have decided to use solution from http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28230622.html

Just will edit *.scv to hold username and will use command

GC C:\proxy.csv | % {
Set-ADUser $_ -Add @{ProxyAddresses="SMTP:$_@mydomain.org"}
}

Thanks.
Regards,
0
 
LVL 15

Author Closing Comment

by:Ivan
ID: 40550852
I have decided to use solution from http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28230622.html
by member Subsun.

Regards.
0

Featured Post

Are your corporate email signatures appalling?

Is it scary how unprofessional your email signatures look? Do users create their own terrible designs and give themselves stupid job titles? You can make this a lot easier for yourself by choosing an email signature management solution from Exclaimer today.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

758 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

11 Experts available now in Live!

Get 1:1 Help Now