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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.