Tipps&Tricks zu meinem DokuWiki


net stop "Windows Update" & net stop bits
rmdir c:\Windows\SoftwareDistribution /S /Q
net start bits & net start "Windows Update"
wuauclt.exe /detectnow

Um den Code gleich herunterladen zu können, kann ein Dateiname hinzugefügt werden.
<code cmd Windows_Update.cmd>
Codezeilen
</code>

Windows_Update.cmd
@echo off
echo.
echo Achtung, das Script muss als Administrator ausgeführt werden.
echo.
set /p EINGABE=Wollen Sie fortfahren oder abbrechen? [j oder n] 
echo.
if not %EINGABE% == j goto ende
:start
net stop "Windows Update" & net stop "Automatic Updates" & net stop bits
rmdir c:\Windows\SoftwareDistribution /S /Q
net start bits & net start "Windows Update" & net start "Automatic Updates"
wuauclt.exe /detectnow
echo.
echo.
:ende
echo Fertig.
pause
1)
Text in der Fussnote