Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exchange 2010--Powershell--Give one user ManagedBy permission to many DL

Posted on 2013-01-16
2
Medium Priority
?
622 Views
Last Modified: 2013-01-16
Please provide the Powershell script that will give one user Managedby permission to many Distribution Groups

Thank you!
0
Comment
Question by:Anthony K O365
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 38783173
Try..
GC C:\list.txt | % {
 $Grp = get-distributiongroup $_
	$manage = $Grp.managedby
	$Newuser = Get-User "UserName"
	$Newmanage = $manage+$Newuser
 Set-distributiongroup $Grp.identity -managedby $Newmanage -bypasssecuritygroupmanagercheck 
}

Open in new window


Input file format
Group1
Group2
Group3

Open in new window

0
 

Author Closing Comment

by:Anthony K O365
ID: 38783292
This worked like a charm!

Thanks much!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question