> ## 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.

# Stop And Quarantine File

Stop execution of a file on a device and delete it.

The following permissions are required to run this action:

* `Machine.StopAndQuarantine`
* `Machine.ReadWrite.All`

<Note>
  External Documentation

  To learn more, visit the [Microsoft Defender For Endpoints documentation](https://learn.microsoft.com/en-us/defender-endpoint/api/stop-and-quarantine-file).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter  | Description                                                              |
  | ---------- | ------------------------------------------------------------------------ |
  | Comment    | The comment to associate with the action.                                |
  | Machine ID | The ID of the machine. Can be obtained using the `List Machines` action. |
  | Sha1       | The `sha1` of the file to stop and quarantine on the device.             |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "https://api.securitycenter.microsoft.com/api/$metadata#MachineActions/$entity",
	"id": "5382f7ea-7557-4ab7-9782-d50480024a4e",
	"type": "StopAndQuarantineFile",
	"title": null,
	"requestor": "Blink Ops Lab App",
	"requestorComment": "Stop and quarantine file on machine due to alert",
	"status": "Pending",
	"machineId": null,
	"computerDnsName": null,
	"creationDateTimeUtc": "2026-07-14T13:28:22.9480733Z",
	"lastUpdateDateTimeUtc": "2026-07-14T13:28:22.9480767Z",
	"cancellationRequestor": null,
	"cancellationComment": null,
	"cancellationDateTimeUtc": null,
	"errorHResult": 0,
	"scope": null,
	"externalId": null,
	"requestSource": "PublicApi",
	"relatedFileInfo": null,
	"commands": [],
	"troubleshootInfo": null
}
```

## Workflow Library Example

[Stop and Quarantine File with Microsoft Defender for Endpoints and Send Results Via Email](https://library.blinkops.com/workflows/stop-and-quarantine-file-with-microsoft-defender-for-endpoints-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/stop-and-quarantine-file-with-microsoft-defender-for-endpoints-and-send-results-via-email/canvas" />
</div>
