0 votes

Hello, I am looking for a way with a custom command or script to change ExtensionAttribute4 for all users in a specific OU(and Sub-OU's). Currently all of the values are firstname.lastname@xxx.com and I need to change them to firstname.lastname@yyy.com just changing the field after the @ symbol.

Thank You

by (470 points)

1 Answer

0 votes
by (1.1k points)

One Way you could do it is from the Adaxes Administration Console.

In the Console Tree, open Active Directory, then your domain
In the Console Tree select the OU with your users
In the Result Pane, Select, Shift-Select, or CTRL-Select the user(s) you want to modify
Right-Click one of the highlighted accounts and select "Add/Modify Property"

Select "Show all properties" then scroll through the list and select "extensionAttribute4" then "Next"

In the Property value, enter %firstname%.%lastname%@yyy.com (or %firstname:lower%.%lastname:lower%@yyy.com if you want all lower) and click Next

Alternately, you can click on the "Insert a property value reference" button to the right of the box and select your fields

Click "Finish". You should get confirmation for all the users that were modified.

* Off-topic to Adaxes Support, how do I attach pictures so there is no scroll bar next to the image? Also, it appears there is a limit of 3 attachements?

0

Unfortunately, the Firstname and LastName fields do not always match what is in the EA4. I would need something that captures the EA4 value before the @ and writes it to a CustomAttribText value. Once I had that I could easily re-write the field with a custom command.

Related questions

0 votes
1 answer

Hi all, I've created a 'View User' command via the Web Interface Configurator. I don't want users to be able to make any changes, so I've created a Custom ... there any way to remove this, short of removing the entire Exchange section itself? Thanks, David

asked Sep 5 by dshortall (80 points)
0 votes
1 answer

I have a dropdown-field on the web surface, which is populated by a script. The script looks up all groups in a specific OU and displays them. In the Property Pattern ... random order. What should i do to show the groups in alphabetical order in the portal?

asked Sep 15, 2020 by lohnag (160 points)
0 votes
1 answer

Since DIRSYNC doesn't appear to sync UPN correctly and it needs to be changed VIA powershell online. Is there a way to create a custom ... current on-prem UPN? Set-MsolUserPrincipalName -UserPrincipalName oldemail@old.com -NewUserPrincipalName newemail@new.com

asked Aug 11, 2015 by auser42 (340 points)
0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4 by KEME (80 points)
0 votes
1 answer

good day, is there any chance to modify the behavior of the address field? Which displays a users address like this: We would like to have City and Zip/Postalcode comma ... question, can the blank line be removed from a drop down list? Regards Ingemar Jacob

asked Sep 16, 2013 by ijacob (960 points)
3,548 questions
3,238 answers
8,232 comments
547,811 users