w10install/scripts/modify-explorer.cmd

58 lines
1.7 KiB
Batchfile
Raw Permalink Normal View History

2021-03-06 15:10:45 +01:00
@echo off
2023-01-22 12:56:24 +01:00
set SCRIPT_SETTINGS=settings.cmd
2024-02-23 14:03:56 +01:00
set CUSTOM_SETTINGS=..\custom\settings.cmd
2023-01-22 12:56:24 +01:00
rem default: disabled
set explorer_quick_access=0
2021-03-06 15:10:45 +01:00
echo ####### %0 #######
2023-01-22 12:56:24 +01:00
echo.
echo searching for SCRIPT settings ...
if NOT EXIST %SCRIPT_SETTINGS% (
echo INFO: config file %SCRIPT_SETTINGS% NOT FOUND
) else (
echo OK. Loading SCRIPT settings ...
call %SCRIPT_SETTINGS%
)
echo.
2024-02-21 11:58:08 +01:00
echo searching for CUSTOM settings ...
if NOT EXIST %CUSTOM_SETTINGS% (
echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND
) else (
2024-02-21 11:58:08 +01:00
echo OK. Loading CUSTOM settings ...
call %CUSTOM_SETTINGS%
)
echo ++++++++++++++++++++++++++++++++++
echo explorer_quick_access=%explorer_quick_access%
echo ++++++++++++++++++++++++++++++++++
echo.
if %explorer_quick_access% == 0 (
echo disabling explorer quick access ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
2023-02-08 16:12:23 +01:00
/v "HubMode" /t REG_DWORD /d 1 /f
) else (
echo enabling explorer quick access ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
2023-02-08 16:12:23 +01:00
/v "HubMode" /t REG_DWORD /d 0 /f
)
2021-03-31 00:22:47 +02:00
2021-03-30 22:38:15 +02:00
echo disabling network icon ...
2021-03-06 15:10:45 +01:00
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" ^
2023-02-08 16:12:23 +01:00
/v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f
2021-03-06 15:10:45 +01:00
2021-03-30 23:24:39 +02:00
echo removing 3d Objects ...
2023-01-22 12:56:24 +01:00
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f 2>nul
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f 2>nul
2021-03-06 15:10:45 +01:00
echo restarting explorer ...
taskkill /f /im explorer.exe 1>nul 2>nul
start explorer.exe
echo ####### %0 #######
2021-03-31 00:22:47 +02:00