Android Plus - Soft reset device in script

D
Daniel_Infra
Bell Canada

Hi all,

We've created a profile that contains an XML file being pushed to the device, but for the configuration to apply the devices needs a reboot. Ideally we would want the device to reboot itself when the profile is installed. I've tried a post-install script in the package as ''reset /S'' but this doesn't work. 

Is there a way to make a unit reboot automatically when a profile is installed ?

Thanks,

3 years ago
Android Scripting
ANSWERS
MD
Matt Dermody Diamond Contributor
3 years ago

reset /s

lowercase s

In general I would recommend trying out and verifying a script manually with the Send Script functionality in the console to a targeted device so that you can confirm the functionality prior to embedding the script into a Package.

D
Daniel_Infra
3 years ago

Hi Matt,

Thanks that worked, I took the S capital is from the SOTI documentation though

E
Erick
4 months ago

bump

/s works not /S

OA
Ozan Acikalin
3 years ago

I am using the task scheduler to restart my devices daily.

As a script command i am using just "reset" and that one is working fine. 

When i remember correctly then "reset /s" is just the default option for "reset".

D
Daniel_Infra
3 years ago

Hi Ozan,

Is there a technical reason for the task scheduler to restart those units ?

I'm asking as our units only have 2GB Ram, so it could be a good idea have them rebooted on a daily basis