Add new proxyaddress attribute scripted

Posted on 2013-06-21
Last Modified: 2013-06-29
I need to add a proxy address (Email alias) to ALOT of AD accounts. I have a CSV which has the users Display Name, UPN, and new Proxy address to add.

I don't have a 2008 R2 DC so I cant use PS 2.0 which makes this complicated for me. If I could use the AD PS Module I can do a simple script in PS to add to the corresponding accounts.

Now I am not sure how I can get this done without PS, using the CSV as reference. ADModify does not do what I need using the CSV.

There is no base format of what the new proxy address needs to be, its random for all the users. Only the CSV has the correct data.

Any ideas?
Question by:alexr54
  • 4
LVL 19

Expert Comment

ID: 39268097
Could you make a "manual" example? Create a test user, add the proxy address and post results (screen shots or whatever). Thank you.

Author Comment

ID: 39268685
I am not sure what you mean... But I will try to answer.

The CSV contains 2 columns.
Column A, Column B.
Column A has the user Display Name, Column B has the new proxy address to add to the user in column A.

So for Example:
John Doe,
Joe Dane,
John Goodman,
and on and on...

Using powershell I can easily grab the Display Name in column A, and use Column B to write the data as a proxy address attribute in AD.

Basically I am adding an Email alias to every account, in no particular format that makes any sense. (not up to me) So I would need to use the data in the CSV and can not use any logic to make the attribute.

For example in PS I would do something like:
Import CSV
Set-ADUser "$UserID" -Add @{proxyAddresses = ($_.NewProxy";")}

But I don't have the ability to run PS 2.0 in this AD infrastructure, so I need another method.

This sniplet below shows a single entry done in PS of what I need. BUT I cant use PS :(

PS > (Get-ADUser Kazun -Properties proxyaddresses).proxyaddresses
PS > Get-ADUser Kazun | Set-ADUser -Add @{proxyAddresses = ""}
PS > (Get-ADUser Kazun -Properties proxyaddresses).proxyaddresses

Open in new window


Author Comment

ID: 39272452

Accepted Solution

alexr54 earned 0 total points
ID: 39272747
I figured it out by using quest powershell software.

Author Closing Comment

ID: 39286407
Answered myself.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, active directory 9 34
NTP Servers 4 47
Problems creating account in AD with Powershell, data from SQL 57 51
Urgent domain controller problems 8 31
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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