Zebra TC77 turn off WIFI

DC
Daryl Cox
Isotrak Ltd

Good morning

i am currently enrolling some Zebra TC77 devices using afw#mobicontrol.

as part of this process the devices are connected to wifi first.

the profiles are downloaded and the device is enrolled as expected which include the APN settings for the sim.

ideally i need a script i can run whih simply turns off WIFI. this will allow the SIM to connect as the APN settings are now there.

however i have tried the following scripts

setradioenable wifi 0 - this states it is not supported
 
wifiapenable 0 -does not seem to do anything
 
 
this has meant that i have had to install the SOTI Settings Manager to allow users to access the wifi settings from the lockdown
 
i now have to remote to each device individually to open the settings and toggle the switch to turn off the wifi.
 
has anyone got any ideas how i can do this bit via a script????
 
 
 
If possible my final element is how can i run this script automatically once the enrollment is completed and all the profiles have been installed???
 
i already have to run the following scripts as it is not done automatically on enrollment
 
request_appops_permission WRITE_SETTINGS - as this setting is not done automatically
 
reset /S - as it seems the remote plugin and APN only seem to be set correctly after a reset
 
 
interestingly i cannot seem to run these both in the same script as it never does the soft reset
 
 
thanks
 
Daryl
 
 
4 years ago
SOTI MobiControl
ANSWERS
J
JSMOD@SOTI
4 years ago (edited 4 years ago)

Hi Daryl,

Thank you for posting on SOTI Central.

My understanding is that the 'setradioenable' script is only compatible for Android Classic. Personally I wouldn't recommend disabling WiFi via a script as this could become hard to keep track of in the future, for instance if you need to re-enable it again. 

As an alternative, perhaps you could create a 'staging' device group where WiFi is enabled and gives devices the chance to install all necessary Profiles which are applied to the group. Once the Profiles are installed you can move them into a 'production' group which has the same Profiles assigned, but with an extra Feature Control applied to Disable WiFi.

You can also add a Filter Criteria to the Profile with 'APN contains...' to further restrict which devices it gets assigned to.

Kind regards,

R
RRMOD@SOTI
4 years ago

Hi Daryl,

Following up on the email thread, If the above post helped you in your inquiry. Please mark the particular comment as "is solution", so others may benefit from this information.