設定儲存 [回顧] 所使用之螢幕擷取畫面的持續時間上限 的登錄值 SetMaximumStorageDurationForRecallSnapshots電腦HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI

原則 ID
SetMaximumStorageDurationForRecallSnapshots
適用範圍
電腦設定、使用者設定
支援的作業系統
至少需要 Windows 11 專業版、企業版或有 Windows 沙箱的教育版
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Windows AI

登錄

SetMaximumStorageDurationForRecallSnapshots

-電腦使用者

SetMaximumStorageDurationForRecallSnapshots

REG_DWORD電腦使用者
啟用時的值
取決於選項值
元素
選取儲存持續時間上限:
選項
項目儲存的值
讓作業系統定義快照的儲存時間上限 0
30 天30
60 天60
90 天90
180 天180
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI]

; 選項 (只使用其中一個)
; 讓作業系統定義快照的儲存時間上限
"SetMaximumStorageDurationForRecallSnapshots"=dword:00000000
; 30 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000001e
; 60 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000003c
; 90 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000005a
; 180 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:000000b4
CMD
:: 選項 (只使用其中一個)

:: 讓作業系統定義快照的儲存時間上限
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 0 /f
:: 30 天
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 30 /f
:: 60 天
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 60 /f
:: 90 天
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 90 /f
:: 180 天
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 180 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null

# 選項 (只使用其中一個)
# 讓作業系統定義快照的儲存時間上限
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 0 -Force | Out-Null
# 30 天
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 30 -Force | Out-Null
# 60 天
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 60 -Force | Out-Null
# 90 天
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 90 -Force | Out-Null
# 180 天
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 180 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsAI]

; 選項 (只使用其中一個)
; 讓作業系統定義快照的儲存時間上限
"SetMaximumStorageDurationForRecallSnapshots"=dword:00000000
; 30 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000001e
; 60 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000003c
; 90 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:0000005a
; 180 天
"SetMaximumStorageDurationForRecallSnapshots"=dword:000000b4
CMD
:: 選項 (只使用其中一個)

:: 讓作業系統定義快照的儲存時間上限
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 0 /f
:: 30 天
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 30 /f
:: 60 天
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 60 /f
:: 90 天
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 90 /f
:: 180 天
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 180 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null

# 選項 (只使用其中一個)
# 讓作業系統定義快照的儲存時間上限
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 0 -Force | Out-Null
# 30 天
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 30 -Force | Out-Null
# 60 天
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 60 -Force | Out-Null
# 90 天
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 90 -Force | Out-Null
# 180 天
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 180 -Force | Out-Null