Solved

Bulk Office 365 Internal Only Distribution Group Set

Posted on 2014-12-15
2
417 Views
Last Modified: 2014-12-17
Hi Experts,

I have the following command:

Set-DistributionGroup testgroup -RequireSenderAuthenticationEnabled $False

Open in new window


This will set the group to INTERNAL only. I would like to be able to import a list of group names within a CSV and run this command. I know a FOR loop will be required. Any idea how this can be achieved.

I was thinking something like:

Import-Csv "C:\temp\groups.csv" | foreach {Set-DistributionGroup..............}

Open in new window


Any help will be appreciated.

Regards,

introlux
0
Comment
Question by:introlux
2 Comments
 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 450 total points
ID: 40500185
Import-Csv "C:\temp\groups.csv" | foreach { Set-DistributionGroup $_.GroupName -RequireSenderAuthenticationEnabled $False }

Csv file should be of this format:  (first cell value "GroupName" )

GroupName
testgroup1
testgroup1
testgroup3
....
0
 
LVL 8

Assisted Solution

by:tshearon
tshearon earned 50 total points
ID: 40500346
Just a note, but if you use '-RequireSenderAuthenticationEnabled $False' then you are saying non-authenticated users can send which makes the group accessible to external senders. That switch should be set to true to achieve the result you desire.
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

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.
A procedure for exporting installed hotfix details of remote computers using powershell
In this video we show how to create a mailbox database 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 >> Data…
how to add IIS SMTP to handle application/Scanner relays into office 365.

758 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

19 Experts available now in Live!

Get 1:1 Help Now