Get-ProcessPerformance
SYNOPSIS
Gets the top 10 processes by CPU %
SYNTAX
Get-ProcessPerformance [[-ComputerName] <String[]>] [[-LimitProcCount] <Int32>] [[-Sortby] <String>]
[<CommonParameters>]
DESCRIPTION
Gets the top 10 processes by CPU %
EXAMPLES
EXAMPLE 1
Get-ProcessPerformance -ComputerName Apollo -LimitProcCount 10 -Sortby '% CPU'
PARAMETERS
-ComputerName
Device to be queried.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LimitProcCount
List the top x of processes.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
-Sortby
Sort by CPU or Memory descending.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: % CPU
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.