Solved

Import ProxyAddresses attribute into ADUsers

Posted on 2015-01-09
5
220 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 80

Expert Comment

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

Author Comment

by:Ivan
ID: 40541176
Hi,

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

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 16

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 16

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

763 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