Unique command in Windows Powershell

Unique command is used to display unique records from the object collection or file.

Below image shows how to sort the file and then get the unique lines.

unique-command-in-powershell

unique-command-in-powershell

 

Below command shows how to display unique processes (by name).

> Get-Process | Unique

You may also like...