Skip to main content

Lock Stolen System

Summary

This script is used to track and lock down stolen systems. If the computer-level EDF Stolen Lockdown is marked, it will enable BitLocker and shut down the computer.

Sample Run

Target: Windows Machine

Sample Run Image

Variables

NameDescription
stolenFilled by an EDF.
SystemLockdownFilled by an EDF.
NetNeighborsResult of Get-NetNeighbor PowerShell
ipconfigResult of ipconfig /all
IPINFOResult of Get-IPInfo PowerShell
IPINFOIPIP address of the machine
IPINFOCityCurrent city of the machine according to the IP address
IPINFOStateCurrent state of the machine according to the IP address
IPINFOLocCurrent coordinates of the computer according to the IP address
ImageCurrentUserPath to webcam picture taken on the local machine
BitlockerOutputResult of PowerShell to enable BitLocker

Global Parameters

NameExampleRequiredDescription
BitlockerPasswordpassword123!TrueThe password to use to enable BitLocker on the target machine
BitlockerMessageThis system is owned...TrueThe message to display on the BitLocker lock screen.

EDFs

NameTypeRequiredDescription
Mark System As StolenCheck BoxTruePrimary EDF to enable the solution. Check this EDF to mark a computer as stolen.
System LockdownCheck BoxTrueMark this EDF to lock down the computer once it comes online. The script will not enable BitLocker and shut down the computer if this EDF is unchecked.
IPINFO_IPText BoxTrueCurrent IP address of the machine, saved by the script.
IPINFO_CityText BoxTrueCurrent city of the machine according to the IP address
IPINFO_StateText BoxTrueCurrent state of the machine according to the IP address
IPINFO_CoordsText BoxTrueCurrent coordinates of the computer according to the IP address

EDFs Image

Output

  • Script log
  • Ticket
  • LTShare files
  • EDFs

Ticketing

Subject: Lost or stolen system %computername% at %clientname% has come online!

Ticket Body: The script Lock Stolen System is currently running against the device and will attempt to find the location of the machine, attempt to BitLocker the device, and attempt to take a photo from any onboard webcams.

Ticket Comment:

The system has been encrypted with BitLocker to prevent data theft.
PW: @BitlockerPassword@

Information Gathered!

Ipconfig:
@ipconfig@

NetNeighbors if available:
@netneighbors@

WebCamImage:
@ImageCurrentUser@

The script is using the shutdown command, so the machine will become unusable without the BitLocker key.