Skip to main content

Unlock Stolen System [Macintosh]

Overview​

This automation reverses Lock Stolen System [Macintosh] on a Mac that has been recovered or was locked by mistake. It re-enables the user accounts the lockdown disabled, removes the lock message from the login window and the FileVault screen, and sets cPVAL Lock Status to Unlocked. Automatic login and the Guest account stay off.

Users then sign in with the lockdown password and should change it right away. At the first sign-in, macOS asks to update the login keychain, which needs their previous password.

note

This automation is optional and runs on demand only. Don't schedule it or add it to a condition. It runs only after cPVAL Mark System as Stolen is unchecked, so it can't unlock a Mac that's still missing.

Requirements​

  • A Mac locked by Lock Stolen System [Macintosh], started and unlocked at the FileVault screen with the IT admin account, and online in NinjaOne
  • cPVAL Mark System as Stolen unchecked
  • Run As: System
  • Shell script (bash)

Sample Run​

Image1

Scenarios​

  • Recovered Mac: the automation re-enables the locked accounts and sets cPVAL Lock Status to Unlocked. Users sign in with the lockdown password.
  • Still marked as stolen: the automation makes no changes and shows as failed. Uncheck cPVAL Mark System as Stolen and run it again.
  • Mac not locked: if the Mac wasn't locked by Lock Stolen System [Macintosh], the automation makes no changes and shows as failed.
  • An account couldn't be re-enabled: the automation shows as failed and names the account. It keeps its record of the locked accounts, so you can run it again.

Custom Fields​

Custom FieldScopeTypeDescription
cPVAL Mark System as StolenDeviceCheckboxMust be unchecked for the automation to run.
cPVAL System LockdownDeviceCheckboxUncheck the box to prevent further automation.
cPVAL Lock StatusDeviceTextSet to Unlocked after the lockdown is reversed.

Dependencies​

Automation Setup/Import​

Automation Configuration

Output​

Changelog​

2026-11-12​

  • Initial version of the document