boeckerit
Goto Top

Index löschen und neu erstellen per batch oder cmd

Moin,

ich hab folgende Frage.
man kannn ja unter WIN 7 in den Indizierungsoptionen unter "Erweitert" den Index löschen und neu erstellen.
Ist es auch möglich, das ganze mit einer cmd oder batch zu machen?
Vielen dank für eure Antworten.

Content-Key: 197554

Url: https://administrator.de/contentid/197554

Printed on: April 20, 2024 at 04:04 o'clock

Member: colinardo
colinardo Jan 24, 2013 updated at 09:30:23 (UTC)
Goto Top
Hier eine Lösung aus der Microsoft Community :

back-to-topManually re-build the search index.
1. Click on Start and then on Run.
2. Type cmd and hit Enter.
3. Type the following command and press enter.
net stop wsearch
4. Close the command prompt.
5. Click on Start and then on run.
6. %AllUsersProfile%\Application Data\Microsoft\Search\Data\Applications\Windows and delete all the files and subfolders.
7. Open registry editor by typing regedit.exe from the run box.
8. Delete the following registry keys:

- "HKLM\Software\Microsoft\Windows Search\Applications\windows"
- "HKLM\Software\Microsoft\Windows Search\CatalogName\windows"
- "HKLM\Software\Microsoft\Windows Search\Databases\windows"
- "HKLM\Software\Microsoft\Windows Search\Gather\windows"
- "HKLM\Software\Microsoft\Windows Search\Gathering manager\Applications\windows"
- "HKLM\Software\Microsoft\Windows Search\UsnNotifier\windows"

9. In registry in key "HKLM\Software\Microsoft\Windows Search"
switch "SetupCompletedSuccessfully" subkey to "0"
10. Open the command prompt again and type the following command in order to start windows search again.
net start wsearch

Restart the computer.
Member: colinardo
colinardo Jan 24, 2013 at 09:30:08 (UTC)
Goto Top
oder als Script zusammengefasst (Admin-Rechte erforderlich):
@echo off
net stop wsearch
rd "%AllUsersProfile%\Application Data\Microsoft\Search\Data\Applications\Windows\" /S /Q  
reg delete "HKLM\Software\Microsoft\Windows Search\Applications\windows" /f  
reg delete "HKLM\Software\Microsoft\Windows Search\CatalogName\windows" /f  
reg delete "HKLM\Software\Microsoft\Windows Search\Databases\windows" /f  
reg delete "HKLM\Software\Microsoft\Windows Search\Gather\windows" /f  
reg delete "HKLM\Software\Microsoft\Windows Search\Gathering manager\Applications\windows" /f  
reg delete "HKLM\Software\Microsoft\Windows Search\UsnNotifier\windows" /f  
reg add "HKLM\Software\Microsoft\Windows Search" /v SetupCompletedSuccessfully /t REG_DWORD /d 0 /f  
net start wsearch
Member: boeckerit
boeckerit Jan 24, 2013 at 11:29:59 (UTC)
Goto Top
super, vielen Dank für die schnelle Antwort. Probier es gleich aus und melde mich, ob es geklappt hat.