Solved

powershell exchange 2010 multiple managedby members in one command

Posted on 2013-11-19
2
650 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In this video we show how to create a Distribution Group 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 >>…
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…

739 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