> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/fr/virtual-machines/windows--slow-to-format-a-new-disk.md).

# Windows - Formatage lent d’un nouveau disque

Comment corriger le formatage lent d’un disque virtuel sous Windows Server 2012 et versions ultérieures en désactivant temporairement les commandes SCSI TRIM et Unmap à l’aide de fsutil.

Les hôtes Windows Server 2012 (et versions ultérieures) émettront, par défaut, des commandes SCSI **TRIM** et **Unmap** équivalentes à la taille totale du disque virtuel. Ce comportement est le même même si l'option « Effectuer un formatage rapide » est cochée, ce qui ralentit considérablement le processus de formatage.

Il est possible de désactiver la **TRIM SCSI** et **Unmap** fonctionnalité sur l'hôte pendant la durée du formatage.

## Pour désactiver TRIM et Unmap

À l'aide d'une fenêtre Windows **CMD** sur l'hôte, exécutez la commande suivante :

```doscon
fsutil behavior set DisableDeleteNotify 1
```

## Pour réactiver la fonctionnalité

Utilisez la commande suivante pour réactiver la **fonctionnalité Trim et Unmap** :

```doscon
fsutil behavior set DisableDeleteNotify 0
```

## Pour vérifier le paramètre actuel

Vous pouvez vérifier le **fonctionnalité Trim et Unmap** paramètre actuel en exécutant la commande suivante :

```doscon
fsutil behavior query DisableDeleteNotify
```

La sortie affichera l'un des éléments suivants :

* **DisableDeleteNotify=0** - La fonctionnalité « Trim et Unmap » est **sur** (activée).
* **DisableDeleteNotify=1** - La fonctionnalité « Trim et Unmap » est **désactivée** (désactivée).

{% hint style="info" %}
**Versions concernées**

* Seuls les hôtes Windows Server 2012 et versions ultérieures sont concernés. Toutes les versions antérieures (par ex., Windows 2008) ne présentent pas le même problème.
  {% endhint %}

{% hint style="info" %}
**Versions non serveur**

* Les versions non serveur de Windows (par ex., Windows 8.x et 10.x) ne prennent pas en charge le **paramètre DisableDeleteNotify** .
  {% endhint %}

***

{% hint style="info" %}
**Informations sur le document**

* Dernière mise à jour : 2024-08-29
* Version de VergeOS : 4.12.6
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.verge.io/knowledge-base/fr/virtual-machines/windows--slow-to-format-a-new-disk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
