Solved

Bulk Office 365 Internal Only Distribution Group Set

Posted on 2014-12-15
2
447 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
[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 19

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

Office 365 Training for Admins - 7 Day Trial

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

752 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