Skip to main content

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.

note

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.io for the public IP address and location

Sample Run​

Image1

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 Locked and 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 FieldScopeTypeDescription
cPVAL Mark System as StolenDeviceCheckboxMust be checked for the automation to run.
cPVAL System LockdownDeviceCheckboxLocks and shuts down the computer when checked.
cPVAL Stolen System BitLocker PasswordDeviceSecureBitLocker password set on the system drive. Required for lockdown.
cPVAL Stolen System BitLocker MessageDeviceTextMessage shown on the BitLocker recovery screen. Optional.
cPVAL Current Location and IP DetailsDeviceMulti-lineReceives the BitLocker status, public IP address, internet provider, location and ipconfig /all output.
cPVAL Network NeighboursDeviceWYSIWYGReceives up to 30 nearby network devices.
cPVAL Lock StatusDeviceTextSet to Locked after a successful lockdown.

Dependencies​

Automation Setup/Import​

Automation Configuration

Output​

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