forked from shoober420/windows11-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisableShellExperienceHost.bat
More file actions
17 lines (14 loc) · 962 Bytes
/
DisableShellExperienceHost.bat
File metadata and controls
17 lines (14 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
rem # Disable Shell Experience Host (to restore run "sfc /scannow")
rem # Disable Shell Infrastructure Host
takeown /s %computername% /u %username% /f "C:\Windows\System32\ShellHost.exe"
icacls "C:\Windows\System32\ShellHost.exe" /grant:r %username%:F
taskkill /im ShellHost.exe /f
rem del "C:\Windows\System32\ShellHost.exe" /s /f /q
ren "C:\Windows\System32\ShellHost.exe" "ShellHost.exe.bak"
rem # Disable Shell Experience Host (to restore run "sfc /scannow")
takeown /s %computername% /u %username% /f "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe"
icacls "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" /grant:r %username%:F
taskkill /im ShellExperienceHost.exe /f
rem del "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" /s /f /q
ren "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" "ShellExperienceHost.exe.bak"
PAUSE