Script set PIN using %CustomAttr%

Script set PIN using %CustomAttr%

Hi, 

it's possible to obtain data from custom attributes and send a script to device?

like this:

On SOTI server have set this custom attributes on each device set manual her own PIN code and by script send:

resetpassword %CustomAttr:PIN% -bypass_secure_startup

but dosn't work, is blocked by default or custom attributes is used for other pourposes?

 

If I send this script

showmessagebox %SERIALNUM%   It works and show me this macro, but don't work with custom attributes  

5 Answers

Order By:   Standard | Newest | Votes
JSMOD@SOTI | posted this 19 April 2021

Hi Miquel,

 

Thank you for posting on SOTI Central.

 

Could you please share some information about the device such as Manufacturer, Model, OS version and method of enrollment (i.e Android Classic or Android Enterprise)?

 

Many thanks,

 

Technical Support | SOTI Inc. | 1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0
Raymond Chan | posted this 19 April 2021

Hi Miquel,

Have you configured your 'PIN" custom attribute value to be propagated to targeted devices in the custom attribute manager of your MobiControl web console?

 

  • 1
  • 0
Miquel Angel Aloy Vich | posted this 20 April 2021

Hi thanks for your answer,

My device:

  • Datalogic
  • MEMOR 10
  • Android 8.1.0
  • Android Enterprise

On Global Settings > Device Settings > PIN > Send To Device ON

I need some settings more?

  • 0
  • 0
Miquel Angel Aloy Vich | posted this 20 April 2021

Hi again,

today I've rebooted all my memor 10 and check-In again and works perfect. I don't know what's happen yesterday :(

 PIN -> 1234

script:

showmessagebox %CustomAttr:PIN%

And in my device appears 1234

 

Tested with resetpassword and works fine :)

resetpassword %CustomAttr:PIN%- bypass_secure_startup 

  • 1
  • 0
Raymond Chan | posted this 21 April 2021

After turning on the propagate (i.e. the "send to device" in newer UI as shown in your screenshot), it takes some time for the MobiControl server to schedule getting the custom attribute key pair sent to each of the targeted device in the next server-device update/sync.   If you don't want to wait, you should be able to make this happen almost instantly by initiating a "device check-in" action. A device reboot can of course get the same result.

 

 

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback