SOLVED

Exchange Distribution Group Security Owner

%3CLINGO-SUB%20id%3D%22lingo-sub-2612046%22%20slang%3D%22en-US%22%3EExchange%20Distribution%20Group%20Security%20Owner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2612046%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EFirst%20let%20me%20say%20I'm%20not%20looking%20for%20a%20distribution%20group%20owner.%26nbsp%3B%20I've%20been%20tasked%20to%20get%20the%20Advanced%20Security%20Owner%20of%20each%20group.%26nbsp%3B%20Please%20see%20below.%26nbsp%3B%20Looking%20to%20do%20this%20with%20PowerShell%20so%20I%20can%20export%20to%20csv.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22exchangeperm.png%22%20style%3D%22width%3A%20768px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F300577iD69BA2F3F1F75690%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22exchangeperm.png%22%20alt%3D%22exchangeperm.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2612046%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2016%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2621903%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Distribution%20Group%20Security%20Owner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2621903%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1120642%22%20target%3D%22_blank%22%3E%40j_zap%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%24DLs%3D%20Get-ADGroup%20-Properties%20*%20-Filter%20*%20%7C%20where%20%7B%24_.GroupCategory%20-eq%20'Distribution'%7D%20%7C%20select%20DistinguishedName%3C%2FDIV%3E%3CDIV%3E%24DLs%20%7C%20ForEach-Object%20%7Bdsacls%20%24_.DistinguishedName%20%7C%20select-string%20%22%5EOwner%22%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EOr%20you%20can%20directly%20use%20get-%3CA%20href%3D%22https%3A%2F%2Fbit.ly%2F3ypCn97%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Edistributiongroup%3C%2FA%3E%20cmdlet%20on%20EMS.%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2633664%22%20slang%3D%22en-US%22%3ERe%3A%20Exchange%20Distribution%20Group%20Security%20Owner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2633664%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1098776%22%20target%3D%22_blank%22%3E%40aliatimanami%3C%2FA%3E%26nbsp%3BPerfect%20this%20is%20exactly%20what%20I'm%20looking%20for.%26nbsp%3B%20Quick%20question%2C%20how%20do%20I%20add%20the%20Distribution%20Group%20that%20correlates%20to%20the%20owner%3F%26nbsp%3B%20I%20tried%20adding%20it%2C%20but%20have%20been%20unsuccessful.%3C%2FP%3E%3CP%3EThanks!!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi All,

First let me say I'm not looking for a distribution group owner.  I've been tasked to get the Advanced Security Owner of each group.  Please see below.  Looking to do this with PowerShell so I can export to csv.

exchangeperm.png

Thanks,

John

3 Replies
best response confirmed by j_zap (New Contributor)
Solution

@j_zap 

 

$DLs= Get-ADGroup -Properties * -Filter * | where {$_.GroupCategory -eq 'Distribution'} | select DistinguishedName
$DLs | ForEach-Object {dsacls $_.DistinguishedName | select-string "^Owner"}
 
Or you can directly use get-distributiongroup cmdlet on EMS.

@aliat_IMANAMI Perfect this is exactly what I'm looking for.  Quick question, how do I add the Distribution Group that correlates to the owner?  I tried adding it, but have been unsuccessful.

Thanks!!

Do you want to add a distribution group that has the owner as member of that group or do you want to add a DL to the membership of another DL having the same owner as the other distribution group?
 
In either way this is a doable. The user account have the insufficient permissions to manage distribution group. However, if you have sufficient permission you can do it via exchange, by opening up the Exchange Management Console, under recipient configuration select distribution groups, right click the group you want to add other groups to and select properties, navigate to members and click add. Else you can use a exchange shell command
 
Add-DistributionGroupMember -Identity "Xyz" -Member "abc@groupid.com"

this adds "abc" to the distribution group named as "Xyz"