Files
setup_windows_2/scripts/script_wincheck.cmd
T

29 lines
825 B
Batchfile
Raw Normal View History

2025-08-26 13:06:53 +00:00
@echo off
:: Stand 2025-08-18
echo --------------------------------------------------------------------------
echo I Windows prüfen
echo --------------------------------------------------------------------------
powercfg /h off
taskkill /f /im explorer.exe
2026-09-24 11:58:56 +00:00
:: SFC /scannow /offbootdir=C: /offwindir=C:\windows
sfc /scannow
:: DISM
2026-09-24 11:48:09 +00:00
:: dism /online geht nicht? Durch /Image:<Systemdrive> ersetzen!
:: dism /Image:C:\ /cleanup-image /scanhealth
2026-09-24 11:58:56 +00:00
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /checkhealth
dism /online /cleanup-image /restorehealth
2025-08-26 13:06:53 +00:00
net stop "usosvc"
net stop "wuauserv"
del /f /q C:\ProgramData\USOPrivate\UpdateStore*
net start "usosvc"
net start "wuauserv"
UsoClient.exe RefreshSettings
:: cmd /k del /q /f /s %temp%*
cleanmgr /verylowdisk
start explorer.exe
:: shutdown -g -t 0