Uniemożliwiaj indeksowanie w celu oszczędzania energii, gdy komputer jest zasilany z baterii: wartość rejestru PreventIndexOnBatteryKomputerHKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search

Identyfikator zasady
PreventIndexOnBattery
Zakres
Konfiguracja komputera
Obsługiwane w systemach
System Microsoft Windows XP lub system Windows Server 2003 z programem Windows Search 3.01 lub nowszym albo dowolna wersja systemu Microsoft Windows z programem Windows Search 4.0 lub nowszym
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Wyszukaj

Rejestr

PreventIndexOnBattery

REG_DWORDKomputer
Wartość włączona
1
Wartość wyłączona
0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Włączone
"PreventIndexOnBattery"=dword:00000001
; Wyłączone
"PreventIndexOnBattery"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Włączone
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "PreventIndexOnBattery" /t REG_DWORD /d 1 /f
:: Wyłączone
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "PreventIndexOnBattery" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Włączone
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'PreventIndexOnBattery' -PropertyType DWord -Value 1 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'PreventIndexOnBattery' -PropertyType DWord -Value 0 -Force | Out-Null