Avatar of xmuff
xmuff
 asked on

Export "showInAddressBook" attribute of a distribution group

Dear all,

I woul'd like to export "showInAddressBook" attribute of a distribution group (Exchange 2010) in PS script. I know how to do for user but not for group.

Thank you for help!

XMU
ExchangePowershellWindows Server 2008Active Directory

Avatar of undefined
Last Comment
xmuff

8/22/2022 - Mon
Will Szymkowski

I think you are talking about "HiddenFromAddressList"? There is not "ShowInAddressBook" attribute. Use the following script below...

Get-DistributionGroup -ResultSize "unlimited" | ? { $_.HiddenFromAddressList -eq $False } |
Select DisplayName, PrimarySmtpAddress, GroupType |
Export-csv "c:\DistributionGroups.csv" -nti

Open in new window


Will.
Mahesh Sharma

Hello

Check out this

https://www.experts-exchange.com/questions/27859729/Pull-the-legacyexchangeDN-showinaddressbook-attribute-of-all-contacts-in-a-OU.html
or
Get-DistributionGroup -resultsize unlimited |  Select name, @{Name='AddressListMembership`;Expressi
on={[string]::join(";", ($_.AddressListMembership))}} | Export-Csv C:\export.csv
xmuff

ASKER
Thank you all for your answers but I'm searching for "showInAddressBook" like in this picture. Does anyone know how to get this information (exporting in a CSV or on the PowerShell prompt).showInAddressBook
Really thank you for help!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Mahesh Sharma

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
xmuff

ASKER
PER-FECT!!!!!