Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the urvanov-syntax-highlighter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in C:\home\site\wwwroot\wp-includes\functions.php on line 6114
Update AD-Users with new Phone-number and Pager via Powershell – A Geeks World

Update AD-Users with new Phone-number and Pager via Powershell

Had a quick question from a customer about how one can automatically update the phone number and pager of a lot of AD users. The customer was changing switchboard and had to add 1 number in front of the current number.  Adding it in the middle of the string is also possible, but slightly more complicated as you have to split the string.

This is possible to do in a few different ways, but I chose the quickest way for me, via Powershell.

End Result:

aduser

 

3 thoughts on “Update AD-Users with new Phone-number and Pager via Powershell”

  1. Hi Marcus
    Yes please, can you please show the changes that need to be made. There are multiple OUs where users are located. This would be a time saver, if phone numbers could be udated in a spreadsheet and then directly uploaded.
    Thank you

  2. That would absolutely be quite easy and shouldn’t take long to adjust the script and implement that.
    please drop me a mail if you would want some help with that markus.lassfolk at truesec.se

  3. Is it possible to modify this script to upload an excel sheet of telephone numbers and pager numbers that have changed?

Leave a Reply