Hi - i am trying to find the description,RecipientPermission,displayname,managedby(owner),requiresenderauthenticationenabled(if allowed to send from outsider),Membercount,PrimarySMTP.
I am able to get get all but description and RecipientPermission from below. How do I incorporate that into the below?
[quote quote=131127]to get those results you would use get-adgroup and get-adpermissions for the description field and permissions
[/quote]
thank you. But how can i add them to my script? I dont want to use a different script and pull both spreadsheets and compare. There are too many columns to go through.
I’m afraid that won’t work. Your custom property is using the command “get-distributiongroupmember” as the scriptblock expression for “MemberCount”. It’s not a property of the incoming objects produced by Get-DistributionGroup. You won’t get any results for member count.