Link to home
Start Free TrialLog in
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
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

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.
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
Avatar of xmuff
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).User generated image
Really thank you for help!
ASKER CERTIFIED SOLUTION
Avatar of Mahesh Sharma
Mahesh Sharma
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xmuff

ASKER

PER-FECT!!!!!