Lock Stolen System [Windows]
Overview
This automation tracks a Windows computer marked as stolen and saves its public IP address, internet provider, approximate location, network settings and nearby network devices to custom fields. When cPVAL System Lockdown is checked, it first locks the system drive with the BitLocker password in cPVAL Stolen System BitLocker Password, then shuts the computer down one minute after it finishes. Without lockdown, the computer stays online so it can be tracked again.
The Lock Stolen Systems [Windows] compound condition runs this automation every 30 minutes on computers marked as stolen, so you rarely need to run it yourself. It shows as failed when the computer isn't marked as stolen, or when the lockdown can't finish, for example because the lockdown password isn't set.
Requirements
- Windows 10 or Windows 11 Pro, Enterprise or Education, which include BitLocker
- Run As:
System - PowerShell 5.1
- Internet access to
ipinfo.iofor the public IP address and location
Sample Run

Scenarios
- Track only: with cPVAL Mark System as Stolen checked and cPVAL System Lockdown unchecked, the automation updates the location and network details, and the computer stays online.
- Track and lock down: with both checked and the lockdown password set, the automation locks the system drive, updates the details, sets cPVAL Lock Status to
Lockedand shuts the computer down after one minute. If BitLocker was off, the automation turns it on with the lockdown password, and encryption continues in the background. - Lockdown without a password: if cPVAL Stolen System BitLocker Password is empty, nothing is locked. The details are still updated, the computer stays online, and the automation shows as failed.
- Not marked as stolen: the automation makes no changes and shows as failed.
Custom Fields
| Custom Field | Scope | Type | Description |
|---|---|---|---|
| cPVAL Mark System as Stolen | Device | Checkbox | Must be checked for the automation to run. |
| cPVAL System Lockdown | Device | Checkbox | Locks and shuts down the computer when checked. |
| cPVAL Stolen System BitLocker Password | Device | Secure | BitLocker password set on the system drive. Required for lockdown. |
| cPVAL Stolen System BitLocker Message | Device | Text | Message shown on the BitLocker recovery screen. Optional. |
| cPVAL Current Location and IP Details | Device | Multi-line | Receives the BitLocker status, public IP address, internet provider, location and ipconfig /all output. |
| cPVAL Network Neighbours | Device | WYSIWYG | Receives up to 30 nearby network devices. |
| cPVAL Lock Status | Device | Text | Set to Locked after a successful lockdown. |
Dependencies
- Custom Field: cPVAL Mark System as Stolen
- Custom Field: cPVAL System Lockdown
- Custom Field: cPVAL Stolen System BitLocker Password
- Custom Field: cPVAL Stolen System BitLocker Message
- Custom Field: cPVAL Current Location and IP Details
- Custom Field: cPVAL Network Neighbours
- Custom Field: cPVAL Lock Status
- Compound Condition: Lock Stolen Systems [Windows]
- Automation: Unlock Stolen System [Windows]
- Solution: Lock Stolen System
Automation Setup/Import
Output
- Activity Details
- Custom Field: cPVAL Current Location and IP Details
- Custom Field: cPVAL Network Neighbours
- Custom Field: cPVAL Lock Status
Changelog
2026-11-12
- Renamed the automation to Lock Stolen System [Windows].
- Computers without System Lockdown now stay online. Only locked computers shut down, one minute after the automation finishes.
- The lockdown now runs before the details are collected and also works when BitLocker protection is suspended.
- cPVAL Network Neighbours now lists up to 30 devices, including devices without a DNS name, and cPVAL Current Location and IP Details now includes the internet provider, country and BitLocker status.
- Fixed cPVAL Network Neighbours and cPVAL Lock Status not being updated.
- Rewrote the document in the current automation format.
2026-02-10
- Initial version of the document