@ECHO OFF \u0026amp;COLOR 70 \u0026amp;TITLE Windows System Repair script, Licence: GNU GPL 3 \u0026amp;echo/
SET QUIT=PING -n 10 0 ^\u0026gt;NUL 2^\u0026gt;^\u0026amp;1 ^\u0026amp;COLOR 70 ^\u0026amp;EXIT/B
:: check for admin rights
SET \u0026quot;ADM=\u0026quot; \u0026amp;bcdedit \u0026gt;NUL 2\u0026gt;\u0026amp;1
IF NOT \u0026quot;%ERRORLEVEL%\u0026quot;==\u0026quot;1\u0026quot; SET \u0026quot;ADM=Y\u0026quot;
IF NOT DEFINED ADM COLOR 74 \u0026amp;echo ERROR! Run again by right-clicking and selecting 'Run as administrator' \u0026amp;%QUIT%
:: gives time to cancel before any changes (all scripts should provide this...)
FOR /L %%I IN (10,-1,1) DO CLS \u0026amp;echo. \u0026amp;echo Starting in %%Is. Press [Ctrl+C] or X corner to cancel... \u0026amp;PING -n 2 0 \u0026gt;NUL 2\u0026gt;\u0026amp;1
CLS
:: first scan system files
sfc /scannow
:: Then download a default system image file and try to repair
DISM /Online /Cleanup-Image /RestoreHealth
echo/ \u0026amp;echo Done, reboot your PC now... \u0026amp;%QUIT%
取り敢えず、上記のスクリプトをメモ帳等にコピペして拡張.batにして管理者として実行してチェック。
自動的に再起動すると思うので、動作チェックしてみて下さい。
あと「設定→システム→回復→Windows Updateで問題を解決する」でオンラインからWindowsのみを上書きインストール出来ます。
下のクイックマシンリカバリもオン推奨です。