Solved

powershell exchange 2010 multiple managedby members in one command

Posted on 2013-11-19
2
631 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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 an email address policy 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 Mail Flow…
To show how to generate a certificate request 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 Servers >> Certificates…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now