troubleshooting Question

# Need help with powershell to set sendon behalf on mailboxes from a csv

ExchangePowershell
I am needing help with setting send of behalf on a group of users the csv I have has in one column the managers which each on needs send on the behalf of the other column which is named analysts.
here is what I have so far... but not for sure how to format the add statement as to not to remove any existing users that have send aon behalf rights
$UserList = import-CSV c:\rm\sendas.csv ForEach ($User in $UserList) { Set-Mailbox$user.analyst-GrantSendOnBehalfTo @{add=\$user.manager}
}
McLovin
###### Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.