Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

powershell exchange 2010 multiple managedby members in one command

Posted on 2013-11-19
2
Medium Priority
?
690 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 1640 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

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

715 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