0 votes

How can I add a proxy address to a user account using addaxes and a custom command or business rule? I have tried to use a powershell script to do it but since the active directory module uses a later version of PowerShell the script fails within addaxes. I did look at using set-admuser but it didn't look like it would work either? Below is the script I was using.

Import-Module ActiveDirectory
$User = "%SamAccountname%"
get-aduser $user | set-aduser -add @{ProxyAddress=sip:"%userPrincipalName%"}


by (150 points)

Ok, I was over thinking this a bit. instead of using a script I just updated the account by using modify the account and using the "email proxy address". I was looking for proxy address like it is in AD and didn't realize that addaxes added email to it.


Thats the only solution to this issue?

1 Answer

0 votes
by (216k points)
selected by
Best answer


That's the recommended one. It is the fastest and the safest approach. We recommend using scripts only when modifications are not possible or very hard to achieve with the help of built-in actions. For example, if there was complicated logic behind selecting which proxy address to add, then it would be more efficient to use scripts. Here's an example of a case when you won't do without scripts: Generate unique primary SMTP address.

Related questions

0 votes
0 answers

We are looking for a way to setup a "rename user" in the web interface that also changes the proxy adress. Our emails always include names so they always get changed on ... smtp) and the new one to (SMTP) ? smtp:old.email@domain.com SMTP:new.email@domain.com

asked Dec 22, 2021 by silicondt (40 points)
0 votes
0 answers

Hi Again, We have office 365 that is setup through the cloud service portion. Unfortunately when we setup a new user including the email address, it doesn't ... need to do some powershell scripting to populate the email address automatically? Thanks, PWReset

asked May 9, 2017 by PasswordReset (70 points)
0 votes
1 answer

We just busted our licence limit of 400, but we are only 320 employees. All the extras are either service accounts, external contractors accounts or old user accounts ... is reinstated on the 'managed accounts' list? Thank you for the guidance, Louis

asked Apr 11, 2022 by lw.fa (130 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (130 points)
0 votes
1 answer

Hi I need to execute the script when user is added to a group. In that script I need to access group properties - name, etc. and user's properties. I have no problem ... don't think Initiator is giving me the right user. Any help will be much appreciated. V.

asked Oct 31, 2017 by xirurg (100 points)
3,071 questions
2,784 answers
436,710 users