1. Home
  2. Knowledge Base
  3. How to update SureLock remotely on Windows devices

How to update SureLock remotely on Windows devices

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.

Purpose

The purpose of this knowledge article is to provide a guide on how to update SureLock remotely on Windows devices.

Prerequisites

This can be achieved by applying the 4 sets of jobs in sequential order as mentioned below:

  • Run Script Job to enable auto logon after the upgrade.
  • Install Job to silently install the latest version of the SureLock.
  • Run Script Job to auto logon using Admin credentials post-reboot.
  • Run Script Job to auto launch SureLock.

Steps

Step 1 : Steps to create Run Script Job to enable auto-logon post upgrade of SureLock.

1. Login to the 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 Run Script 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 and click on Save.

Step 2: Steps to create an Install Job to silently install the latest version of SureLock.

1. Login to the 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 and click on Save.

Step 3: Steps to create a Run Script Job to auto logon using Admin credentials post reboot.

1. Login to the 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 Run Script and Paste in Run Script windows.

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

NOTE: Replace Username & Password with your Admin credentials.

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

6. Name the job and click on Save.

Step 4 : Steps to create a Run Script Job to auto-launch SureLock.

1. Login to the 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 Run Script and Paste in Run Script windows.

"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  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 the 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).

Need more help? Here’s how to get help from our experts. 

CONTACT US

Was this helpful?
YesNo
Updated on April 2023