I have scripted AdvancedSearchOptions.bat to configure the default Advanced Options that are in effect when you press Start / Search / For Files and Folders.

The syntax for using AdvancedSearchOptions.bat is:

\[call\] AdvancedSearchOptions SearchSystemDirs SearchHidden IncludeSubFolders CaseSensitive SearchSlowFiles

Where:

<b>SearchSystemDirs</b>    allows the searching of <b>System</b> folders.

<b>SearchHidden</b>        allows the searching of hidden files and folders.

<b>IncludeSubFolders</b>   includes sub-folders in the search.

<b>CaseSensitive</b>       causes the search to be case sensitive.

<b>SearchSlowFiles</b>     insures that searches on slow medium, like a tape, are successful.
AdvancedSearchOptions.bat contains:
@echo Off
If \{%5\}==\{\} @echo Syntax: AdvancedSearchOptions SearchSystemDirs SearchHidden IncludeSubFolders CaseSensitive SearchSlowFiles&goto :EOF
setlocal
set opt=SearchSystemDirs
set OnOff=X
if /i "%1" EQU "Y" set OnOff=1
if /i "%1" EQU "N" set OnOff=0
call :setOpt
set opt=SearchHidden
set OnOff=X
if /i "%2" EQU "Y" set OnOff=1
if /i "%2" EQU "N" set OnOff=0
call :setOpt
set opt=IncludeSubFolders
set OnOff=X
if /i "%3" EQU "Y" set OnOff=1
if /i "%3" EQU "N" set OnOff=0
call :setOpt
set opt=CaseSensitive
set OnOff=X
if /i "%4" EQU "Y" set OnOff=1
if /i "%4" EQU "N" set OnOff=0
call :setOpt
set opt=SearchSlowFiles
set OnOff=X
if /i "%5" EQU "Y" set OnOff=1
if /i "%5" EQU "N" set OnOff=0
call :setOpt
endlocal
goto :EOF
:setOPT
if "%OnOff%" EQU "X" goto Err
call :quiet >nul 2>&1
goto :EOF
:Err
@echo Syntax: AdvancedSearchOptions %1 %2 %3 %4 %5 - NOT Y or N.
goto :EOF
:quiet
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer /V %opt% /T REG_DWORD /F /D %OnOff%