Skip to content

Group-ObjectFast -Property Name are the same for each Group #5

@BrooksV

Description

@BrooksV

$vmObjs is an array of Azure VM objects

$vmObjs | Group-ObjectFast -Property osType | Select-Object -Property Count, Name, Values

Count Name    Values
----- ----    ------
 9482 Windows       
  292 Windows       
36837 Windows       

$vmObjs | Group-Object -Property osType | Select-Object -Property Count, Name, Values

Count Name    Values   
----- ----    ------   
 9482 Linux   {Linux}  
36837 Windows {Windows}
  292         {}       

Any thoughts on how to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions