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:
Get-EventLog -Log Security -Newest 100 | Select -Property EventID -Unique
Do you have a Windows PowerShell question? Why not submit it to Don? Post your question at www.windowsitpro.com/FAQs/FAQSubmittalForm.aspx and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.