# Locking a Virtual Machine on Suspend

To avoid possible security and privacy issues, a suspended Windows virtual machine can be completely locked from user interaction and viewing.

{% hint style="info" %}
**Note**: With Parallels Desktop for Mac 26.1 or newer, some virtual machine settings, including forcing virtual machines to lock on suspend, can now be controlled centrally using the [Management Portal](https://docs.parallels.com/landing/pd-ag/parallels-management-portal). Read more [here](https://docs.parallels.com/landing/pd-ag/parallels-management-portal/policies#vm-settings).
{% endhint %}

When this option is enabled and a virtual machine is suspended, the Windows desktop in the virtual machine window (and in the Parallels Desktop Control Center) is replaced with a black background and the Windows session is interrupted. When the virtual machine is resumed, the Windows session is remained locked and the user will have to enter their credentials or authenticate (depending on how Windows is set up) to unlock it and see the Windows desktop.

To enable or disable this option:

1. Open Parallels Desktop and select the desired virtual machine (e.g. the source virtual machine when preparing it for mass deployment).
2. On the Parallels Desktop menu bar, select **Actions** > **Configure** to open the virtual machine configuration dialog.
3. Click the **Security** tab.
4. Depending on your needs select or clear the **Always lock Windows on suspend** option.
5. Close the dialog.

{% hint style="info" %}
**Note:** The **Always lock Windows on suspend** option is available only for virtual machine running Windows with Parallels Tools installed. For all other virtual machines, the option will be hidden.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/pd-ag/parallels-desktop-for-mac-enterprise-edition-features/locking-a-virtual-machine-on-suspend.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
