Solved

powershell exchange 2010 multiple managedby members in one command

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
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…

911 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

17 Experts available now in Live!

Get 1:1 Help Now