Dear Community
I need your help , I am trying to total count property values in an array . I come up with the below code but I am sure there could be better way to do this
. Can you take a look and suggest . Thanks in advance. Thanks.
$Query = Group-BrokerMachine -Property Registrationstate -AdminAddress $Adminserver $TotalDesktops = $Query[0].count + $Query[1].count + $Query[2].count + $Query[3].count $TotalDesktops
$query | gm
Name MemberType Definition
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
Count Property int Count {get;set;}
Name Property string Name {get;set;}