troubleshooting Question

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

Avatar of McLovin
McLovin asked on
7 Comments1 Solution454 ViewsLast Modified:
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}  

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
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.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros