Looking for Powershell script to remove double device registrations

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for Powershell script to remove double device registrations

L3 Networker

Hi,

I am looking for a powershell script that will remove double device registrations out of Endpoints and My Computers.

Thanks.

3 REPLIES 3

L4 Transporter

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.

 

 

L3 Networker

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

 

Field_Content_versions_oct20__068Vy00001ekSD9IAM.pngField_Content_versions_oct20__068Vy00001emDWUIA2.png

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.

  • 4 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!