> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lock Computer

Lock a computer based on a computer ID.

## Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                        |
  | ----------- | ---------------------------------------------------------------------------------- |
  | Computer ID | The ID of the computer to lock. Can be obtained via the `Search Computers` action. |
  | Passcode    | A 6 digit passcode the user needs to enter in order to unlock the computer.        |
</div>

## Example Output

```json theme={"dark"}
{
	"computer_command": {
		"command": {
			"name": "DeviceLock",
			"command_uuid": "1234567-1234-1234-1234-123456789",
			"computer_id": "123"
		}
	}
}
```

## Workflow Library Example

[Lock Computer with Jamf and Send Results Via Email](https://library.blinkops.com/workflows/lock-computer-with-jamf-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/lock-computer-with-jamf-and-send-results-via-email/canvas" />
</div>
