Link to home
Start Free TrialLog in
Avatar of LPanic
LPanic

asked on

Change Distribution List Owner by filtered target

Hey Guys,

I need to replace respective add two new owners/managers to alot of distribution group of ours.

I googled and played around a bit and crafted the command below, but I don't have a test environment, so I am a bit afraid of using it (not all too familiar with emc shell yet).
Basically what I'd need is: Get all Distribution Groups with Owner/ManagedBy "ABE" and replace it with users RIDA,VANM,ABE
Could someone tell me if this would be the correct way or am I totally barking up the wrong tree:

Get-distributiongroup | ?{$_.ManagedBy -eq "ABE"} | set-distributiongroup -ManagedBy RIDA,VANM,ABE

thx and in advance for any suggestions :)
ASKER CERTIFIED SOLUTION
Avatar of Jason Crawford
Jason Crawford
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LPanic
LPanic

ASKER

Your suggestion worked! Thanks alot.
My command unfortunately did not work. The shell didn't come up with an error message but also hasn't made any changes.