1. Home
  2. How to update SureLock remotely on Windows devices?

How to update SureLock remotely on Windows devices?

KB ID: 42G2203614
Views: 222
Updated: March 2022

When devices are spread across different locations, admins need a way to upgrade SureLock and also to auto launch on windows devices remotely from the SureMDM web console without any manual intervention. This can be achieved by applying the 4 sets of jobs in sequential order as mentioned below:

  1. Runscript job to enable auto logon after the upgrade
  2. Install job to silently install the latest version of the SureLock
  3. Runscript job to auto logon using admin credentials post-reboot
  4. Runscript job to auto launch Surelock 

Steps to create runscript job to enable auto-logon post upgrade of SureLock:

1. Login to SureMDM web console.

2. Go to the Jobs section.

3. On the Jobs screen, click on New Job > Windows > Run Script

4. Copy the below Runscript and Paste in run script windows.

reg add "HKLM\SOFTWARE\42gears\SureLock" /v "Autologon" /t REG_SZ /d "True" /f

5. Uncheck the “option Execute In Currently Logged In User Account”

6. Name the job name and click on Save.

Steps to create install job to silently install the latest version of SureLock:

1. Login to SureMDM web console.

2. Go to the Jobs section.

3. On the Jobs screen, click on New Job > Windows > Install Application > Add

4. In the Install Job screen, Enter the File path URL or Upload the file. 

Note: The URL should be a direct download link. For the latest SureMDM Agent version, use this link.

5. You can also specify the path on the device in the Device Path field where you want the .exe file to be downloaded in the device storage.

6. In the Execute path field, enter the value as /verysilent and uncheck the option “Execute In Currently Logged In User Account” and uncheck the option “Install After Copy

7. Click on OK to save the job > Enter the Name of the job name and click on Save.

Steps to create runscript job to auto logon using admin credentials post reboot:

1. Login to SureMDM web console.

2. Go to the Jobs section.

3. On the Jobs screen, click on New Job > Windows > Run Script

4. Copy the below Runscript and Paste in run script windows and

C:\Program Files (x86)\42Gears\SureLock\SureLockAPI.exe"" UserCredentials "username" password

NOTE:


  • Replace username and password with your admin credentials


5. Check the option “Execute In Currently Logged In User Account”

6. Name the job name and click on Save

Steps to create runscript job to auto-launch SureLock:

1. Login to SureMDM web console.

2. Go to the Jobs section.

3. On the Jobs screen, click on New Job > Windows > Run Script

4. Copy the below Runscript and Paste in run script windows and uncheck the option Execute In Currently Logged In User Account

"C:\Program Files (x86)\42Gears\SureLock\SureLockAPI.exe" Start 1

5. Uncheck the option “Execute In Currently Logged In User Account”

6. Name the job name and click on Save.

Once done, apply this job to the device(s) in sequence order as mentioned above and Surelock will get upgraded remotely from the SureMDM Console. 

NOTE:


  • Once above steps are configured and deployed on one device, you can further create a composite job with the above jobs and apply it to the device(s).


To know more about SureMDM for Windows, click here.

If you need further assistance, please submit a ticket here.