Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterize Script for Get List of Stale Devices and Remove them for automation purposes #7

Open
subbzz opened this issue Apr 3, 2019 · 5 comments

Comments

@subbzz
Copy link

subbzz commented Apr 3, 2019

Hi MrTechGadget,

As discussed via mail. I am wondering if we can have a new script to identify and remove stale entries (from all OGs) beyond x number of days (say devices that did not show up over 25 days). This script can run on a daily basis. The date and time can be pegged from the server this script is running.

Thanks,
SS

@MrTechGadget
Copy link
Owner

@subbzz , thanks for opening this. I'm thinking about this and would like some additional info.

  1. Does it matter the status of the device? (Enrolled, Unenrolled, Pending Enterprise Wipe, Device Wipe Initiated, etc.)
  2. Do you want to wipe enrolled devices first or just delete the record?
    2b. If yes, would it be different for employee vs company owned, and different for DEP supervised devices?
  3. What device details are important to log before deletion?

@subbzz
Copy link
Author

subbzz commented Apr 9, 2019 via email

@MrTechGadget
Copy link
Owner

Awesome, glad to hear it. If you would like to contribute those back to this project, contributions are always welcome.

@subbzz
Copy link
Author

subbzz commented Apr 15, 2019 via email

@MrTechGadget
Copy link
Owner

MrTechGadget commented Apr 15, 2019 via email

@MrTechGadget MrTechGadget changed the title Script for Get List of Stale Devices and Remove them Parameterize Script for Get List of Stale Devices and Remove them for automation purposes Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants