Modules.PSOneTools icon indicating copy to clipboard operation
Modules.PSOneTools copied to clipboard

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

Open BrooksV opened this issue 4 years ago • 1 comments

$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?

BrooksV avatar Jul 06 '20 23:07 BrooksV

I am on vacation right now but will look afterwards. Seems to be an issue with how the key is generated...

TobiasPSP avatar Jul 08 '20 08:07 TobiasPSP