Created
April 29, 2022 07:25
-
-
Save iinfin/978561cbd2a7fd9698a0763d2bcca7a4 to your computer and use it in GitHub Desktop.
clear windows updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/c,net stop usosvc & net stop wuauserv & del %systemroot%\SoftwareDistribution\DataStore\Logs\edb.log & del /f /q C:\ProgramData\USOPrivate\UpdateStore\* & net start usosvc & net start wuauserv & UsoClient.exe RefreshSettings' -Verb runAs" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment