Administrators often have to deal with arrays of duplicate values such as when querying for installed software registry keys. Manually identifying the duplicate values and removing them is next to impossible when done at scale. With PowerShell, you can spot and remove the duplicate values from a array easily. Provide the array as the parameter and run the following script to remove the remove duplicates.