您能否告知,为什么会这样:
Get-DistributionGroup -Filter {DisplayName -like "*Name*"} |
fl Displayname, PrimarySMTPAddress, @{Label = "Members"; expression = {
Get-DistributionGroupMember $_.Identity |
select -ExpandProperty PrimarySmtpAddress
}}
这不会:
Get-DistributionGroup -Filter {DisplayName -like "*Name*"} |
fl Displayname, PrimarySMTPAddress, @{Label = "Members"; expression = {
(Get-DistributionGroupMember $_.Identity).PrimarySmtpAddress
}}