設定儲存空間感知器排程 的登錄值 ConfigStorageSenseGlobalCadence電腦HKLM\Software\Policies\Microsoft\Windows\StorageSense

原則 ID
SS_ConfigStorageSenseGlobalCadence
適用範圍
電腦設定
支援的作業系統
至少需要 Windows Server 2016、Windows 10 1903 版
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
系統 › 儲存空間感知器

登錄

ConfigStorageSenseGlobalCadence

REG_DWORD電腦
啟用時的值
取決於選項值
元素
執行儲存空間感知器:
選項
項目儲存的值
每日1
每週7
每月30
可用磁碟空間不足時0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\StorageSense]

; 選項 (只使用其中一個)
; 每日
"ConfigStorageSenseGlobalCadence"=dword:00000001
; 每週
"ConfigStorageSenseGlobalCadence"=dword:00000007
; 每月
"ConfigStorageSenseGlobalCadence"=dword:0000001e
; 可用磁碟空間不足時
"ConfigStorageSenseGlobalCadence"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 每日
reg add "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v "ConfigStorageSenseGlobalCadence" /t REG_DWORD /d 1 /f
:: 每週
reg add "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v "ConfigStorageSenseGlobalCadence" /t REG_DWORD /d 7 /f
:: 每月
reg add "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v "ConfigStorageSenseGlobalCadence" /t REG_DWORD /d 30 /f
:: 可用磁碟空間不足時
reg add "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v "ConfigStorageSenseGlobalCadence" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Force | Out-Null

# 選項 (只使用其中一個)
# 每日
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseGlobalCadence' -PropertyType DWord -Value 1 -Force | Out-Null
# 每週
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseGlobalCadence' -PropertyType DWord -Value 7 -Force | Out-Null
# 每月
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseGlobalCadence' -PropertyType DWord -Value 30 -Force | Out-Null
# 可用磁碟空間不足時
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseGlobalCadence' -PropertyType DWord -Value 0 -Force | Out-Null