Disable indexing for C: drive and others

Yadler1

New Member
Messages
13
Reaction score
0
Как его отключить, чтобы при установке не проверялась индексация на диске С и других?

The indexing checkbox on the -C drive was not checked. initially
 
Last edited:
What problem are you trying to solve? Disable indexing on drive C: after the install? Or enable indexing because it's not working?
 
The traditional fix is to simply enable the "no indexing" file attribute on C:\ folder and all of its subfolders.
Code:
start /b cmd /c attrib +i C:\ && attrib +i /d /s C:\*.*

But it's not a perfect solution, since if you wanted to restart indexing files under C:\, you would have to reverse the file attributes for everything.
 
thanks for the help, this is also a solution, but different.
I apologize for my machine English, but the problem is much more complex. I wish that when installing DISK "C" I would not initially include this attribute!
 
The longer (and more complicated) solution is to use a PowerShell script to modify the Search Indexer rules, and remove C:\ folder path. But this requires extracting a DLL from a nupkg, and including it on the ISO. The script expects to find the DLL in the same folder as itself.

Search field in Settings no longer works (Windows 11 22H2)

nupkg package files can be extracted by 7-Zip, and you need to find Microsoft.Search.Interop.dll
 
this is still too complicated for me. I thought everything would be resolved with a much more elegant solution. Thank you
 
Unfortunately there are no simple scripted solutions. Unchecking the box from the Search Indexer's control panel is the easiest way.

Search indexing is done by rules which are created when Windows is installed. The attributes hack is a crude method of getting the indexer to exclude folders, but it doesn't prevent the indexer from checking them. The only clean way is to modify the rules, from the UI or a script.
 
i usually Apply my test installs, will set that before i apply next time.
 
Back
Top