PowerShell Script – Add New Proxy Address To Multiple Users

This script will show you how to add a new proxy address to a list of users using PowerShell.

 The script will not delete existing addresses or modify them.

 This script will run on Windows Server 2008 R2 and above with AD tools Installed.

Before you start create a text file called users and add the users samaccountname to it like the example below:

user1
user2
 
import-module activedirectory
 
Get-Content C:\scripts\users.txt | % { set-aduser $_ -add   
  @{proxyaddresses="smtp:$_@domain.migration"}}

Posted

in

,

by