Q. How can I remove duplicates from a list of entries?
A. Use the Select-Object cmdlet's -unique parameter. For example, to eliminate duplicate event log entries in a list, you'd use the command:
Do you have a Windows PowerShell question? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.