Code
:: Enable or Disable Floating Immersive Search Bar in Windows 10
@Echo Off
Cls
net sess>nul 2>&1||(start mshta vbscript:code(close(Execute("CreateObject(""Shell.Application"").ShellExecute""%~0"",,,""RunAs"",1"^)^)^)&exit)
Cls & Mode CON LINES=11 COLS=85 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo Enable or Disable Floating Immersive Search Bar in Windows 10(Y/N)?
Echo.
Echo.
Echo.
Set /p input= RESPONSE:
If /i Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
:_Ex
If /i Not %input%==N (Goto :EOF) Else (Goto :_RegRestore)
:_Start
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "ImmersiveSearch" /t REG_DWORD /d "1" /f >Nul
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\Flighting\Override" /v "CenterScreenRoundedCornerRadius" /t REG_DWORD /d "9" /f >Nul
Reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\Flighting\Override" /v "ImmersiveSearchFull" /t REG_DWORD /d "1" /f >Nul
TASKKILL /F /IM Explorer.exe
Start Explorer.exe
Cls & Mode CON LINES=11 COLS=60 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo Enabling Floating Immersive Search Bar
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit
:_RegRestore
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "ImmersiveSearch" /f >Nul
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\Flighting\Override" /v "CenterScreenRoundedCornerRadius" /f >Nul
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\Flighting\Override" /v "ImmersiveSearchFull" /f >Nul
TASKKILL /F /IM Explorer.exe
Start Explorer.exe
Cls & Mode CON LINES=11 COLS=60 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo Disabling Floating Immersive Search Bar
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit
