Questions tagged [group-object]

For questions related to PowerShell's Group-Object cmdlet.

See Group-Object.

20 questions
0
votes
1 answer

PowerShell Group Sort Select

I'm imply trying to learn a little and struggling with what I thought would be basic Group By, Order By, ... when working with JSON. Below is one of my attempts $response = Invoke-WebRequest -Uri 'https://jsonplaceholder.typicode.com/todos'…
Still Learning
  • 130
  • 2
  • 12
0
votes
1 answer

Powershell - Group-Object Expand and Group again

I have a .csv file which I'm grouping on two properties 'DN', 'SKU' and then performing a sum on another property 'DeliQty' This works fine and the sum is reflected back to the group. However I then need to re group just on 'DN' and write out to…
ColinA
  • 99
  • 1
  • 9
0
votes
1 answer

PowerShell - Expand Group-Object

I want to expand a PowerShell Group Object. But only the first Object. Get-EventLog -Logname system -EntryType "Error" | Group-Object 'InstanceID' | Select-Object Count, Name, @{Name="Message";Expression={$_.Group.Message[0]}} | Format-Table…
Jens1888
  • 3
  • 3
0
votes
2 answers

Powershell script is missing property in result

I am not sure what is wrong with the script. I have a 3 column csv file that consists of Name,Count,Owner. The goal is to get the highest count of each name, then output all 3 columns, however the Owner column is not outputting. I am only getting…
0
votes
1 answer

Group-Object by numbers dynamically Powershell

I got a file with the following pattern: 10:15:16:290 53123 10:15:16:290 ra-agi Trace: Sending Query Request message to application gateway host. 10:15:16:290 ra-agi Trace: ApplicationGatewayID = 5001 10:15:16:290 ra-agi Trace: InvokeID…
fbe106360
  • 71
  • 1
  • 6
1
2