Un-enroll multiple devices via script?

Un-enroll multiple devices via script?

This Friday I'll have a situation where a large set of devices will need to be un-enrolled.  Is there a certain script for the un-enroll process for which I could run to run on an entire folder group instead of having to do each one individually?  I couldn't find anything in the script cmd doc but wanted to confirm.

 

 

Thanks

7 Answers

Order By:   Standard | Newest | Votes
Matt Dermody | posted this 18 October 2018

What version are you on? I'm pretty sure you can select multiple devices in a folder an unenroll them simultaneously without having to script it:

 

  • 1
  • 0
Chris R. | posted this 18 October 2018

We are on version 13.4.0.4167.  There is not an option to select multiple devices and when I try to select the folder, the un-enroll option is not there.

  • 0
  • 0
Anton Apanasenko | posted this 18 October 2018

If it is Android devices that need to be mass un-enrolled, you can try <uninstall_agent> script.

That command removes MobiControl agent application from target device(s) and gracefully removes previously applied policies. 

  • 0
  • 0
Chris R. | posted this 18 October 2018

I believe I read that only worked for non-ELM agents.  Any thoughts on that?

  • 0
  • 0
Anton Apanasenko | posted this 18 October 2018

As far as I am aware, <uninstall_agent> script should work for all Android+ agents:

http://www.soti.net/mc/help/v13/en/default.htm#ScriptCmdSet.htm?Highlight=scripts

  • 0
  • 0
Chris R. | posted this 18 October 2018

We are using Samsung TabE devices and this is the part I was referring to:

 

The uninstall_agent command cannot uninstall a Samsung ELM agent due to permission limitations.

  • 0
  • 0
Raymond Chan | posted this 19 October 2018

Hi Chris,

On v13.4, your only option left is probably to use RESTful API's to find the deviceID of each device of interest and unroll with

  POST  /api/devices/{deviceId)/actions

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback