How to set O365 Groups AcceptMessagesOnlyFrom/AcceptMessagesOnlyFromDLMembers using powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-400567%22%20slang%3D%22en-US%22%3EHow%20to%20set%20O365%20Groups%20AcceptMessagesOnlyFrom%2FAcceptMessagesOnlyFromDLMembers%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400567%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20set%20using%20Powershell%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EAcceptMessagesOnlyFrom%3C%2FTD%3E%3CTD%3EAcceptMessagesOnlyFromDLMembers%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20there%20is%20no%20option%20to%20use%20above%20attributes%20when%20using%20Set-UnifiedGroup.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehow%20to%20achieve%20this!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EShashidhar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-400567%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice365%20Group%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-400573%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20set%20O365%20Groups%20AcceptMessagesOnlyFrom%2FAcceptMessagesOnlyFromDLMembers%20using%20powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400573%22%20slang%3D%22en-US%22%3E%3CP%3EThere's%20only%20a%20single%20parameter%20to%20control%20all%20%22accept%22%20settings%20%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E-AcceptMessagesOnlyFromSendersOrMembers.%20You%20can%20add%20either%20a%20single%20entry%20or%20group%2C%20so%20all%20the%20functionality%20is%20there.%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

Hello All,

 

I am trying to set using Powershell

AcceptMessagesOnlyFromAcceptMessagesOnlyFromDLMembers

 

but there is no option to use above attributes when using Set-UnifiedGroup. 

 

how to achieve this!

 

Thanks,

Shashidhar

1 Reply
Highlighted

There's only a single parameter to control all "accept" settings -AcceptMessagesOnlyFromSendersOrMembers. You can add either a single entry or group, so all the functionality is there.