Solved

Bulk Office 365 Internal Only Distribution Group Set

Posted on 2014-12-15
2
458 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

What, When and Where - Security Threats from Q1

Join Corey Nachreiner, CTO, and Marc Laliberte, Information Security Threat Analyst, on July 26th as they explore their key findings from the first quarter of 2017.

Question has a verified solution.

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

My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

632 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