Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Import ProxyAddresses attribute into ADUsers

Posted on 2015-01-09
5
Medium Priority
?
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 83

Expert Comment

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

Author Comment

by:Ivan
ID: 40541176
Hi,

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

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 17

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 17

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring Remote Assistance for use with SCCM
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

610 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