Contact Info

Crumbtrail

ActiveXperts.com » 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 »

Get-Unique

Short description
Returns the unique items from a sorted list.

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

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

Description
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.