VISO MDM: execute commands

Overview

If you need to execute a more advanced command or a script, or even apply commands that are not currently available on the VISO MDM interface, using the Remote Execcommand repository is the best answer (for devices running Android and Windows OS).

Creating a new command

Note! You can run the commands with high local device privileges, so please use this only if you are familiar with writing batches and scripts and you know what you are doing.

On the left side main menu, click on “Repositories” and from the dropdown menu select “Remote Exec”. A new window will open, showing a list of existing commands and bundles.

Click on the “+” icon to add a new command and set a name to it.

Creating a new command can be done on several levels with a different outcome.

Command – This is where you write the main command

Arguments – This is where you write the command arguments

Wait for Exit – This will indicate if the command result should be sent after the command finishes to run on the remote device or not

Collect output – This will indicate if the process standard result output is collected back as part of the command result

Run with high privileges – Run the command with higher local device privileges

Examples

Android command examples

  What will it do? CMD Arguments Wait Collect Priv
1 Disable 
Google Play store
pm disable com.android.vending     X
2 Get a list of running apps 
and display result
top  -n 1 X X X
3 Open a website using
a default browser
am start -a android.intent.action.VIEW -d https://www.radix-int.com      
4
Run using 
Monkey command
monkey -p org.chromium.webview_shell -c android.intent.category.LAUNCHER 1     X
5 Clear app data am clear com.android.browser     X
 
Result example

Result example for item # 2

Open the “Commands” results (on the left side main menu), click on the desired command to, and click on the "!" sign to see the results information.