Include seconds in registry backup naming

This commit is contained in:
Jeffrey 2026-05-06 13:41:47 +02:00
parent 27bd659567
commit 394aae6769

View File

@ -15,7 +15,7 @@ function New-RegistrySettingsBackup {
New-Item -ItemType Directory -Path $backupDirectory -Force | Out-Null
}
$backupFileName = 'Win11Debloat-RegistryBackup-{0}.json' -f $timestamp.ToString('yyyyMMdd_HHmm')
$backupFileName = 'Win11Debloat-RegistryBackup-{0}.json' -f $timestamp.ToString('yyyyMMdd_HHmmss')
$backupFilePath = Join-Path $backupDirectory $backupFileName
$backupConfig = Get-RegistryBackupPayload -SelectedFeatures $selectedFeatures -CreatedAt $timestamp