Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Issue with expression in powershell statement

$
0
0

Hi,

Does anyone know why this wouldn't work? To me it looks correct..

get-distributiongroup -resultsize:5 | select Name,@{Name="mbrCount";Expression={((Get-DistributionGroupMember $_.Name).Count)}}

The issue is that the mbrCount value only returns on the last 1 or 2 objects in the group of objects! All the others appear blank


MCITP Ent. Messaging | MCTS | MCSA | MCP
http://www.camm.id.au (blog)


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>