Set maximum storage for snapshots used by Recall
Définir le stockage maximal pour les instantanés utilisés par Retrouver
Explanation
This policy setting allows you to control the maximum amount of disk space that can be used by Windows to save snapshots for Recall.
You can set the maximum amount of disk space for snapshots to be 10, 25, 50, 75, 100, or 150 GB.
When this setting is not configured, the OS configures the storage allocation for snapshots based on the device storage capacity unless the current user specifies a different value.
25 GB is allocated when the device storage capacity is 256 GB. 75 GB is allocated when the device storage capacity is 512 GB. 150 GB is allocated when the device storage capacity is 1 TB or higher.
If both maximum storage duration and maximum storage space are set for Recall, then snapshots are deleted when the first maximum is reached.
Important: This setting applies to Enterprise and Education client SKUs only.
Ce paramètre de stratégie vous permet de contrôler la quantité maximale d’espace disque pouvant être utilisée par Windows pour enregistrer des instantanés pour Retrouver.
Vous pouvez définir la quantité maximale d’espace disque pour les instantanés sur 10, 25, 50, 75, 100 ou 150 Go.
Lorsque ce paramètre n’est pas configuré, le système d’exploitation configure l’allocation de stockage pour les instantanés en fonction de la capacité de stockage de l’appareil, sauf si l’utilisateur actuel spécifie une autre valeur.
25 Go sont alloués lorsque la capacité de stockage de l’appareil est de 256 Go. 75 Go sont alloués lorsque la capacité de stockage de l’appareil est de 512 Go. 150 Go sont alloués lorsque la capacité de stockage de l’appareil est de 1 To ou plus.
Si la durée de stockage maximale et l'espace de stockage maximal sont définis pour Retrouver, alors les instantanés sont supprimés lorsque le premier maximum est atteint.
Important : ce paramètre s’applique uniquement aux références SKU client Entreprise et Éducation.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAIHKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsAI- Value name
SetMaximumStorageSpaceForRecallSnapshots
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX (see the options below) |
| Disabled | not defined in the ADMX (see the options below) |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: WindowsCopilot/SetMaximumStorageSpaceForRecallSnapshots
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'SetMaximumStorageSpaceForRecallSnapshots' -Value 1 -Type DWord # assumed value (not defined in the ADMX)
# Select maximum storage space
# Possible options:
# Let the OS define the maximum storage amount based on hard drive storage size = 0
# 10GB = 10240
# 25GB = 25600
# 50GB = 51200
# 75GB = 76800
# 100GB = 102400
# 150GB = 153600
Set-ItemProperty -Path $k -Name 'SetMaximumStorageSpaceForRecallSnapshots' -Value 0 -Type DWordDisable
# Disable: WindowsCopilot/SetMaximumStorageSpaceForRecallSnapshots
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'SetMaximumStorageSpaceForRecallSnapshots' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsCopilot/SetMaximumStorageSpaceForRecallSnapshots
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI'
Remove-ItemProperty -Path $k -Name 'SetMaximumStorageSpaceForRecallSnapshots' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Select maximum storage space:Sélectionner l’espace de stockage maximal :SetMaximumStorageSpace_Text | Drop-down listenum | SetMaximumStorageSpaceForRecallSnapshots | REG_DWORD | Default choice (UI): #0
|