Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Get-Unique

Get-Unique - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Returns the unique items from a sorted list.

Get-Unique [-AsString] [-InputObject <psobject>] [<CommonParameters>]

Get-Unique [-OnType] [-InputObject <psobject>] [<CommonParameters>]

The Get-Unique cmdlet compares each item in a sorted list to the next item, eliminates duplicates, and returns only
 one instance of each item. The list must be sorted for the cmdlet to work properly.