none
PowerShell Script to set TargetAddress on all users in a specific OU RRS feed

  • Question

  • Hi Fellas,

    I have been trying to get my head around a PowerShell script which can achieve this.

    All users part of a specific OU should get a Targetaddress value corresponding to each users SamAccountName.

    For example, if I have user1 & user2 as samaccountnames for 2 users and they reside in an OU named "TestOU". 

    How can I do a PowerShell script to set each of the user's Target Address as user1@abc.com & user2@abc.com. There's no Exchange server in the AD domain where these users are located.

    Also please mention the headers to be used for the csv file if we are doing an input-csv function to set the Targetaddress value on these test users.

    Thanks All.


    H



    • Edited by Hemu5 Tuesday, June 5, 2018 7:10 AM
    • Moved by Bill_Stewart Sunday, July 29, 2018 11:32 PM This is not "scripts on demand"
    Tuesday, June 5, 2018 7:08 AM

All replies