Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- prompt $g
- color 0a
- dism.exe /online /cleanup-image /checkhealth
- dism.exe /online /cleanup-image /scanhealth
- dism.exe /online /cleanup-image /restorehealth
- sfc /scannow
- sfc /scannow
- echo DISM and SFC have FINISHED
- echo See above for the output results
- pause
- cls
- echo Do you want to restart your PC and Re-Register Windows Apps? Recommended.
- echo.
- echo [y] yes
- echo [n] no
- echo.
- set errorlevel=
- choice /c yn /m "Press [y]es or [n]o: "
- if /i not "%errorlevel%"=="1" goto end
- cls && echo.
- echo shutting down and re-registering apps
- timeout 1 >nul
- shutdown /g /t 1
- timeout 1 >nul
- taskkill /f /im wlrmdr.exe
- goto exit
- :end
- cls && echo.
- echo exiting script
- timeout 2 >nul
- endlocal
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement