Solved

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

Posted on 2013-01-16
2
615 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:K Anthony O365
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 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:K Anthony O365
ID: 38783292
This worked like a charm!

Thanks much!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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