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:

SearchSystemDirs    allows the searching of System folders.                              SearchHidden        allows the searching of hidden files and folders.                              IncludeSubFolders   includes sub-folders in the search.                              CaseSensitive       causes the search to be case sensitive.                              SearchSlowFiles     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%