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.




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

> Get-Process | Unique

You may also like...