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 :)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My command unfortunately did not work. The shell didn't come up with an error message but also hasn't made any changes.