Allow only system backup
Autoriser uniquement la sauvegarde du système
Explanation
This policy setting allows you to manage whether backups of only system volumes is allowed or both OS and data volumes can be backed up.
If you enable this policy setting, machine administrator/backup operator can backup only volumes hosting OS components and no data only volumes can be backed up.If you disable or do not configure this policy setting, backups can include both system or data volumes.
Ce paramètre de stratégie permet d’autoriser les sauvegardes des volumes système uniquement ou des volumes du système d’exploitation et des données.
Si vous activez ce paramètre de stratégie, l’administrateur de l’ordinateur ou l’opérateur de sauvegarde ne pourra sauvegarder que les volumes hébergeant les composants du système d’exploitation, et non les volumes de données. Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les sauvegardes seront autorisées pour les volumes système et pour les volumes de données.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Backup\Server- Value name
OnlySystemBackup
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: WindowsBackup/AllowOnlySystemBackup
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Backup\Server'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'OnlySystemBackup' -Value 1 -Type DWordDisable
# Disable: WindowsBackup/AllowOnlySystemBackup
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Backup\Server'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'OnlySystemBackup' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsBackup/AllowOnlySystemBackup
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Backup\Server'
Remove-ItemProperty -Path $k -Name 'OnlySystemBackup' -ErrorAction SilentlyContinue