Solved

powershell exchange 2010 multiple managedby members in one command

Posted on 2013-11-19
2
642 Views
Last Modified: 2013-11-19
I have this command where I am trying to create multiple groups. Is there anyway I can add two individuals at the same time to manage the list in one command. I am reading this from a input file.

import-csv c:\temp\distrolist.csv | new-distributiongroup -name $_.name -organizationalunit "contoso.local/prod/groups" -alias $_.alias -type $_.type -managedby?
0
Comment
Question by:techdrive
2 Comments
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 410 total points
ID: 39659301
So looks like you can do this but it requires an extra step. You need to store your multiple managers into a variable and then use that with the managedby switch.

http://social.technet.microsoft.com/Forums/windowsserver/en-US/1ee33373-a7cd-4713-8c40-45844ebb5d69/multiple-values
0
 

Author Comment

by:techdrive
ID: 39659371
THANKS made my life much easier.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

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.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Contact 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 >> Contact ta…
In this video we show how to create an Address List 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 Organization >> Ad…

777 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