> For the complete documentation index, see [llms.txt](https://docs.nduoiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nduoiq.com/getting-started/integrations/jamf-pro/commands/mac-commands/device-lock.md).

# Device Lock

Locks a Mac remotely with a 6-digit PIN that you set.

#### What It Does

Sends a remote lock command to the Mac. The device locks immediately and requires the PIN you created to unlock it. If the Mac has a firmware or recovery password set, that password is used on reboot instead of the PIN.

#### How to Use

1\. Open the device and tap the command **Lock**

2\. Enter a 6-digit PIN

3\. Confirm the PIN

4\. Review and tap **Lock Now** to send the command

> **Important:** Save your PIN somewhere safe outside the app. You'll need it to unlock the device.

<div><figure><img src="https://1447076014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmVmNab4yyjruMxxWJ7bG%2Fuploads%2F70QIQDXTP6Qh2GNLnsfG%2FSimulator%20Screenshot%20-%20iPhone%2017%20Pro%20-%202026-04-02%20at%2010.33.01.png?alt=media&amp;token=385e68bb-aaaf-4694-ba70-07a2ebea2eab" alt=""><figcaption></figcaption></figure> <figure><img src="https://1447076014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmVmNab4yyjruMxxWJ7bG%2Fuploads%2FmXZAe3ZSjNBDIq0ij35r%2FSimulator%20Screenshot%20-%20iPhone%2017%20Pro%20-%202026-04-02%20at%2010.33.08.png?alt=media&amp;token=53856437-8610-4619-a271-689997a239e2" alt=""><figcaption></figcaption></figure> <figure><img src="https://1447076014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmVmNab4yyjruMxxWJ7bG%2Fuploads%2F6Kb0B1MDoW2zh53Zy5TP%2FSimulator%20Screenshot%20-%20iPhone%2017%20Pro%20-%202026-04-02%20at%2010.33.21.png?alt=media&amp;token=2e1f4bda-cd43-46e6-8954-d8a65909bef7" alt=""><figcaption></figcaption></figure></div>
