Lock Stolen System
Summary
This is the RMM Implementation of Lock Stolen System Script. This task is used to track and lock down stolen systems.
Dependencies
User Parameters
| Name | Example | Accepted Values | Required | Default | Type | Description |
|---|---|---|---|---|---|---|
| BitlockerPassword | password123! | True | P@$$word123 | Text String | The password to use to enable BitLocker on the target machine | |
| BitlockerMessage | This system been marked as lost, please contact support@provaltech.com | True | This system been marked as lost, please contact support@provaltech.com | Text String | The message to display on the BitLocker lock screen. |
Task Creation
Create a new Script Editor style script in the system to implement this task.

Name: Lock Stolen System
Description: This task is used to track and lock down stolen systems
Category: Custom
Parameters
Add a new parameter by clicking the Add Parameter button present at the top-right corner of the screen.
This screen will appear.

- Set
BitlockerPasswordin theParameter Namefield. - Select
Text Stringfrom theParameter Typedropdown menu. - Set
P@$$word123as Default Value. - Click the
Savebutton. - It will ask for confirmation to proceed. Click the
Confirmbutton to create the parameter.

Add another parameter by clicking the Add Parameter button present at the top-right corner of the screen.
- Set
BitlockerMessagein theParameter Namefield. - Select
Text Stringfrom theParameter Typedropdown menu. - Set
This system been marked as lost, please contact support@provaltech.comas Default Value. - Click the
Savebutton. - It will ask for confirmation to proceed. Click the
Confirmbutton to create the parameter.

All the parameters will look like as shown below:
Task
Navigate to the Script Editor section and start by adding a logic. You can do this by clicking the Add logic button at the bottom of the script page.
Step 1 Logic: If/Then
Select IF/Then Logic from the Add Logic dropdown menu.
Row 1a Condition: Get Custom Field
- Replace
OutputwithCustom field - Search and select
Mark System As StolenCustom Field from the dropdown - Select
Equalsas parameter - Set
Falsein the parameter
Row 1b Function: Script Exit
- Add a new row by clicking the Add Row button.
- Search and select the Script Exit function.
- In the script exit message, simply type
Machine is not marked as Stolen. Flag the "Mark System as Stolen" custom field to run this task.
Row 2 Function: PowerShell Script
Search and select the PowerShell Script function.
The following function will pop up on the screen:
Paste in the following PowerShell script and set the expected time of script execution to 300 seconds. Click the Save button.
Row 3 Function: Set User Variable
- Search and select the
Set User Variablefunction. - Set
IPInformationas Variable Name - Set
%Output%as Value - Hit
Saveto save the changes
Row 4 Function: Script Log
- Add another function
Script Login the IF section. - In the script log message, simply type
%output%so that the script will send the results of the PowerShell script above to the output on the Automation tab for the target device.
Row 5 Function: PowerShell Script
- Search and select the
PowerShell Scriptfunction. - Paste in the following PowerShell script and set the expected time of script execution to
300seconds. Click theSavebutton.
Row 6 Function: Set Custom Field
-
Search and select the
Set Custom Fieldfunction.
-
Search and select the
Current Location and IP DetailsCustom Field. -
Type
%output%in theValuebox and click the Save button.
Step 7 Logic: If/Then/Else
- Add a new
If/Then/Elselogic from the Add Logic dropdown menu.
Row 7a: Get Custom Field
In the If section, perform the below steps
- Replace
OutputwithCustom field - Search and select
System LockdownCustom Field from the dropdown - Select
Equalsas parameter - Set
Truein the parameter
Row 7b Function: PowerShell Script
- Add another row in the IF section
- Search and select the
PowerShell Scriptfunction. - Paste in the following PowerShell script and set the expected time of script execution to
300seconds. Click theSavebutton.
Row 7c Function: Script Log
- Add another function
Script Login the IF section. - In the script log message, simply type
%output%so that the script will send the results of the PowerShell script above to the output on the Automation tab for the target device.
Row 7d Function: Create Ticket
-
Add another function
Create Ticketin the IF section. -
Set below as
Subject:
Lost or stolen system at %companyname% has come online!! -
Set below as Description:
-
Set
Emergencyas Priority.

Row 6e Function: Create Ticket
- Add another function
Create Ticketin the ELSE section. - Set below as
Subject:
Lost or stolen system at %companyname% has come online!! - Set below as Description:
- Set
Emergencyas Priority.

Row 8 Function: CMD Script
Search and select the Command Prompt Script function.
The following function will pop up on the screen:

Paste in the following CMD script and set the expected time of script execution to 300 seconds. Click the Save button.
Completed Task

Script Deployment
This task has to be scheduled on the Stolen System group for auto deployment. The script can also be run manually if required.
Go to Automations > Tasks.
Search for Lock Stolen System task.
Then click on Schedule and provide the parameter details as necessary for the script completion.

Output
- Script Logs
- Tickets
Changelog
2025-04-10
- Initial version of the document