Solved

Import ProxyAddresses attribute into ADUsers

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

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a trade show? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
auto desk feauture 5 50
sccm report 1 38
Windows and other UI names - The Proper names for the Various elements! 1 55
Best motion capture software for windows 7 5 85
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

929 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

13 Experts available now in Live!

Get 1:1 Help Now