<!DOCTYPE html> <html> <head> </head> <body> <p>With the Set-DistributionGroup command and the pipe above, select all groups and then apply the property to Administrator</p> <p><strong>Get-DistributionGroup | Set-DistributionGroup -managedby "System Administrator"</strong><br /><br />The next example, on the other hand, is much more selective:<br /><br /><strong>Get-DistributionGroup -Managedby "xxxx" | Set-DistributionGroup -managedby "xxxx"</strong></p> <p>Finally, the example for dynamic distribution lists:<strong><br /><br />Get-DynamicDistributionGroup -Managedby "xxxx" | Set-DynamicDistributionGroup -managedby'xxx'</strong></p> </body> </html>
Subscribe
0 Comments
Oldest