Solved

Bulk Office 365 Internal Only Distribution Group Set

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
Microsoft Office Picture Manager has a Picture Shortcuts pane that shows a list with the Recently Browsed folders. While creating my video Micro Tutorial here at Experts Exchange showing How to Install Microsoft Office Picture Manager in Office 2013…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

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

21 Experts available now in Live!

Get 1:1 Help Now