1. Home
  2. How to programmatically modify the SureLock Settings on Windows devices

How to programmatically modify the SureLock Settings on Windows devices

KB ID: 42G2012775
Views: 161
Updated: May 2021

One of the common requests we received from some of our customers was for a solution to make it possible for a third-party application to programmatically change the SureLock Security password on the device.

We have implemented a generic solution to update SureLock settings on the device without having to reinstall the SureLock CAB files. the solution includes a new module, Supervisory Update (supupd.exe) which takes new SureLock settings (like security password) as command line parameters. For e.g. an application can change the password by launching supupd.exe with the following parameters:

Program FilesSureLocksupupd.exe /changepwd

Here is a sample code (.NET C#):

Process proc1 = new Process();
string oldPassword = “0123”;
string newPassword = “9876”;
proc1.StartInfo.FileName = “\Program Files\SureLock\supupd.exe”;
proc1.StartInfo.Arguments = “/changepwd ” + oldPassword + ” “+ newPassword ;
proc1 .Start();

In the future, we will add more options to let applications change other SureLock settings, like adding and removing “approved” applications.

For more details on our products, click here 
If you need further assistance, please submit a ticket here