Skip to main content

Powershell: Sort-Object

Sort-Object - Sorts objects by property values.

Alias: sort

PS C:\> get-help Sort-Object

NAME
    Sort-Object

SYNOPSIS
    Sorts objects by property values.


SYNTAX
    Sort-Object [[-Property] ] [-CaseSensitive] [-Culture ] [-Descending] [-InputObject
    ] [-Unique] []


DESCRIPTION
    The Sort-Object cmdlet sorts objects in ascending or descending order based on the values of properties
    of the object.

    You can specify a single property or multiple properties, for a multi-key sort, and you can select a
    case-sensitive or case-insensitive sort. You can also direct Sort-Object to display only the objects
    with a unique value for a particular property.

Popular posts from this blog

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...

Windows command: icacls

Icacls is a command-line utility that can be used to display or modify discretionary access control lists (DACLs) on specified files, and apply stored DACLs to files in specified directories.

Powershell: Get-ChildItem

List, search/find files and directories with Get-ChildItem cmdlet.