mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-28 06:04:19 +01:00
fix: SetMaximumStorageSpaceForRecallSnapshots value 10 → 10240 (MB)
Some checks are pending
CI - PowerShell Quality Checks / PSScriptAnalyzer (push) Waiting to run
CI - PowerShell Quality Checks / Test on PowerShell 5.1 (push) Waiting to run
CI - PowerShell Quality Checks / Test on PowerShell 7.4 (push) Waiting to run
CI - PowerShell Quality Checks / Validate Project Structure (push) Waiting to run
Pester Tests / test (push) Waiting to run
Some checks are pending
CI - PowerShell Quality Checks / PSScriptAnalyzer (push) Waiting to run
CI - PowerShell Quality Checks / Test on PowerShell 5.1 (push) Waiting to run
CI - PowerShell Quality Checks / Test on PowerShell 7.4 (push) Waiting to run
CI - PowerShell Quality Checks / Validate Project Structure (push) Waiting to run
Pester Tests / test (push) Waiting to run
Microsoft CSP stores Recall snapshot storage in MB, not GB. 10 GB = 10240 MB. Fixes apply, verify, and compliance check. Closes #14 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
86d76cedc9
commit
3bae0057ea
4 changed files with 9 additions and 9 deletions
|
|
@ -100,8 +100,8 @@
|
|||
},
|
||||
"SetMaximumStorageSpaceForRecallSnapshots": {
|
||||
"Type": "DWord",
|
||||
"Value": 10,
|
||||
"Description": "Maximum snapshot storage: 10 GB (Choices: 10/25/50/75/100/150 GB, 0=OS default)"
|
||||
"Value": 10240,
|
||||
"Description": "Maximum snapshot storage: 10 GB = 10240 MB (Choices: 10240/25600/51200/76800/102400/153600 MB, 0=OS default)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,14 +95,14 @@ function Set-RecallProtection {
|
|||
Write-Log -Level DEBUG -Message "Set max snapshot retention: 30 days" -Module "AntiAI"
|
||||
$result.Applied++
|
||||
|
||||
# 4. Storage Space Limit - Max 10 GB
|
||||
# 4. Storage Space Limit - Max 10 GB (10240 MB per MS CSP)
|
||||
$existing = Get-ItemProperty -Path $regPath -Name "SetMaximumStorageSpaceForRecallSnapshots" -ErrorAction SilentlyContinue
|
||||
if ($null -ne $existing) {
|
||||
Set-ItemProperty -Path $regPath -Name "SetMaximumStorageSpaceForRecallSnapshots" -Value 10 -Force
|
||||
Set-ItemProperty -Path $regPath -Name "SetMaximumStorageSpaceForRecallSnapshots" -Value 10240 -Force
|
||||
} else {
|
||||
New-ItemProperty -Path $regPath -Name "SetMaximumStorageSpaceForRecallSnapshots" -Value 10 -PropertyType DWord -Force | Out-Null
|
||||
New-ItemProperty -Path $regPath -Name "SetMaximumStorageSpaceForRecallSnapshots" -Value 10240 -PropertyType DWord -Force | Out-Null
|
||||
}
|
||||
Write-Log -Level DEBUG -Message "Set max snapshot storage: 10 GB" -Module "AntiAI"
|
||||
Write-Log -Level DEBUG -Message "Set max snapshot storage: 10 GB (10240 MB)" -Module "AntiAI"
|
||||
$result.Applied++
|
||||
|
||||
# Verify
|
||||
|
|
@ -111,7 +111,7 @@ function Set-RecallProtection {
|
|||
$verified = ($null -ne $values.SetDenyAppListForRecall) -and
|
||||
($null -ne $values.SetDenyUriListForRecall) -and
|
||||
($values.SetMaximumStorageDurationForRecallSnapshots -eq 30) -and
|
||||
($values.SetMaximumStorageSpaceForRecallSnapshots -eq 10)
|
||||
($values.SetMaximumStorageSpaceForRecallSnapshots -eq 10240)
|
||||
|
||||
if ($verified) {
|
||||
Write-Log -Level DEBUG -Message "Verification SUCCESS: All Recall protection policies applied" -Module "AntiAI"
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ $protectionChecks = @(
|
|||
(Test-RegistryValue -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" -Name "SetDenyAppListForRecall" -ExpectedValue $expectedDenyApps -Description "App Deny List"),
|
||||
(Test-RegistryValue -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" -Name "SetDenyUriListForRecall" -ExpectedValue $expectedDenyUris -Description "URI Deny List"),
|
||||
(Test-RegistryValue -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" -Name "SetMaximumStorageDurationForRecallSnapshots" -ExpectedValue 30 -Description "Max Retention: 30 days"),
|
||||
(Test-RegistryValue -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" -Name "SetMaximumStorageSpaceForRecallSnapshots" -ExpectedValue 10 -Description "Max Storage: 10 GB")
|
||||
(Test-RegistryValue -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" -Name "SetMaximumStorageSpaceForRecallSnapshots" -ExpectedValue 10240 -Description "Max Storage: 10 GB (10240 MB)")
|
||||
)
|
||||
foreach ($check in $protectionChecks) {
|
||||
$results.Details += $check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue