Open in the explorer

Configure maximum age of file server shadow copies

Configurer l’âge maximal des clichés instantanés du partage de fichiers

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › File Share Shadow Copy Agent FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Agent de clichés instantanés du partage de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
FileServerVSSAgent.admx
Internal name
FileServerVSSAgent/Pol_MaximumAge

Explanation

This policy setting configures the maximum age of a file share shadow copy. File share shadow copies that are older than this age will be deleted by the File Share Shadow Copy Agent. Both the exposed shadow copy share and the corresponding volume shadow copy will be deleted.

If you enable this policy setting, the value specified determines the maximum age of a file share shadow copy.

If you disable or do not configure this policy setting, file share shadow copies older than 24 hours will be deleted.

French text from Windows 10 1511

Ce paramètre de stratégie configure l’âge maximal d’un cliché instantané du partage de fichiers. Les clichés instantanés du partage de fichiers qui sont plus vieux que cet âge sont supprimés par l’Agent de clichés instantanés du partage de fichiers. Le partage du cliché instantané exposé et le cliché instantané du volume sont tous deux supprimés.

Si vous activez ce paramètre de stratégie, la valeur spécifiée détermine l’âge maximal d’un cliché instantané du partage de fichiers.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les clichés instantanés du partage de fichiers qui datent de plus de 24 heures sont supprimés.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\fssAgent
Value name
not defined in the ADMX

Enable / disable values: 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.

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.

Enable

# Enable: FileServerVSSAgent/Pol_MaximumAge
$k = 'HKLM:\Software\Policies\Microsoft\Windows\fssAgent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum Age of Shadow Copies to be Garbage Collected in Hours
Set-ItemProperty -Path $k -Name 'MaximumShadowCopyAgeInHours' -Value 24 -Type DWord  # between 1 and 100000000

Disable

# Disable: FileServerVSSAgent/Pol_MaximumAge
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": FileServerVSSAgent/Pol_MaximumAge
$k = 'HKLM:\Software\Policies\Microsoft\Windows\fssAgent'
Remove-ItemProperty -Path $k -Name 'MaximumShadowCopyAgeInHours' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Maximum Age of Shadow Copies to be Garbage Collected in Hours:Âge maximal en heures des clichés instantanés à nettoyer de la mémoire :Lbl_MaximumShadowCopyAgeInHoursNumeric boxdecimalMaximumShadowCopyAgeInHoursREG_DWORD
Min: 1 · Max: 100000000 · Default (UI): 24

Availability

Windows 11

— 26H2— 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607✓ 1511✓ 1507

Windows Server

— 2025— 2022— 2016