- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-17-2026 07:04 AM
Hi,
I am looking for a powershell script that will remove double device registrations out of Endpoints and My Computers.
Thanks.
07-21-2026 02:35 AM
I used to change the days from when the devices are removed I believe by default it's set to 30 days, I think Idira made a change late last year to make it more efficient to delete from 7 days, but honestly when I run reports and see duplicates I simply change the date down to just 1 day and if I recall it did get rid of the duplicates, there might be a script roaming- https://community.cyberark.com/s/article/00005016 < check this article on how to set the setting, bare in mind we had thousands of devices and it seemed to work this little trick. It's also documented in the above article.
Other than that maybe vote for this ER - https://community.cyberark.com/s/article/Deploy-a-feature-that-detects-duplicate-definition-2942-389. and I found this https://community.cyberark.com/s/article/How-to-deduplicate-computer-objects-in-EPM-using-Computers-APIs seems pretty useful this came out after I left my last gig so never used it myself.
If I remember seeing a PowerShell script on GitHub I will post it here.
07-21-2026 10:46 AM
Just to add more context and screen captures to the prior post
Navigate to Configuration --> Set configuration -> Scroll down to Endpoints section and locate Endpoint detection timeout
I did notice that the minimum is now 4 days.
That said, im implementing this now as well given that we see duplicates as well in our env
07-24-2026 06:05 AM
Thanks. Isn't the result of this that all devices that have not communicated with SaaS for 1 day will be deleted? And you loose all historic data?
I used the script and added support for the new API's. This works now.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

