mirror of
https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool.git
synced 2026-08-19 00:03:24 +08:00
Update version 10.5.3.7
This commit is contained in:
42
README.md
42
README.md
@@ -3,7 +3,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="http://wureset.com/">
|
<a href="https://wureset.com/downloads.php" target="_blank">
|
||||||
<img src="https://github.com/ManuelGil/Reset-Windows-Update-Tool/blob/master/docs/images/wureset.png?raw=true" alt="Logo" height="300" width="300">
|
<img src="https://github.com/ManuelGil/Reset-Windows-Update-Tool/blob/master/docs/images/wureset.png?raw=true" alt="Logo" height="300" width="300">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
<img src="https://img.shields.io/badge/stability-frozen-blue.svg" alt="Status">
|
<img src="https://img.shields.io/badge/stability-frozen-blue.svg" alt="Status">
|
||||||
</a>
|
</a>
|
||||||
<a href="#changelog">
|
<a href="#changelog">
|
||||||
<img src="https://img.shields.io/badge/release-v10.5.3.6-blue.svg" alt="Version">
|
<img src="https://img.shields.io/badge/release-v10.5.3.7-blue.svg" alt="Version">
|
||||||
</a>
|
</a>
|
||||||
<a href="#changelog">
|
<a href="#changelog">
|
||||||
<img src="https://img.shields.io/badge/update-juny-yellowgreen.svg" alt="Update">
|
<img src="https://img.shields.io/badge/update-juny-yellowgreen.svg" alt="Update">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc">
|
<a href="https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc" target="_blank">
|
||||||
<img src="https://img.shields.io/badge/downloads-%2B500K-green.svg" alt="License">
|
<img src="https://img.shields.io/badge/downloads-%2B500K-green.svg" alt="License">
|
||||||
</a>
|
</a>
|
||||||
<a href="#license">
|
<a href="#license">
|
||||||
@@ -72,6 +72,42 @@ If you want to help me to continue this project, you might donate via PayPal.
|
|||||||
<a name="changelog"></a>
|
<a name="changelog"></a>
|
||||||
## :information_source: Changelog
|
## :information_source: Changelog
|
||||||
|
|
||||||
|
**10.5.3.7** (06/04/2019)
|
||||||
|
|
||||||
|
* <table border="0" cellpadding="4">
|
||||||
|
<tr>
|
||||||
|
<td><strong>
|
||||||
|
Requirements:
|
||||||
|
</strong></td>
|
||||||
|
<td>
|
||||||
|
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||||
|
and Windows 10
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>Filename:</strong>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<a href="https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool">
|
||||||
|
ResetWUEng.cmd
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<strong>Changes:</strong>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Add the standalone diagnostic tool <a href="https://go.microsoft.com/fwlink/?linkid=870142" target="_blank">SetupDiag</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
**10.5.3.6** (06/07/2018) [+500K Downloads Celebration](https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc)
|
**10.5.3.6** (06/07/2018) [+500K Downloads Celebration](https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc)
|
||||||
|
|
||||||
* <table border="0" cellpadding="4">
|
* <table border="0" cellpadding="4">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
:: NAME: Reset Windows Update Tool.
|
:: NAME: Reset Windows Update Tool.
|
||||||
:: DESCRIPTION: This script reset the Windows Update Components.
|
:: DESCRIPTION: This script reset the Windows Update Components.
|
||||||
:: AUTHOR: Manuel Gil.
|
:: AUTHOR: Manuel Gil.
|
||||||
:: VERSION: 10.5.3.6 [+500K Downloads Celebration]
|
:: VERSION: 10.5.3.7
|
||||||
:: WEBSITE: http://wureset.com
|
:: WEBSITE: http://wureset.com
|
||||||
:: ==================================================================================
|
:: ==================================================================================
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
:mode
|
:mode
|
||||||
echo off
|
echo off
|
||||||
title Reset Windows Update Tool.
|
title Reset Windows Update Tool.
|
||||||
mode con cols=80 lines=32
|
mode con cols=80 lines=34
|
||||||
color 17
|
color 17
|
||||||
cls
|
cls
|
||||||
|
|
||||||
@@ -238,12 +238,13 @@ goto :eof
|
|||||||
echo. 10. Cleans up the superseded components.
|
echo. 10. Cleans up the superseded components.
|
||||||
echo. 11. Deletes any incorrect registry values.
|
echo. 11. Deletes any incorrect registry values.
|
||||||
echo. 12. Repairs/Resets Winsock settings.
|
echo. 12. Repairs/Resets Winsock settings.
|
||||||
echo. 13. Force Group Policy Update.
|
echo. 13. Forces Group Policy Update.
|
||||||
echo. 14. Searches Windows updates.
|
echo. 14. Searches Windows updates.
|
||||||
echo. 15. Explores other local solutions.
|
echo. 15. Runs SetupDiag (Require .NET Framework 4.6).
|
||||||
echo. 16. Explores other online solutions.
|
echo. 16. Explores other local solutions.
|
||||||
echo. 17. Downloads the Diagnostic Tools.
|
echo. 17. Explores other online solutions.
|
||||||
echo. 18. Restarts your PC.
|
echo. 18. Downloads the Diagnostic Tools.
|
||||||
|
echo. 19. Restarts your PC.
|
||||||
echo.
|
echo.
|
||||||
echo. ?. Help. 0. Close.
|
echo. ?. Help. 0. Close.
|
||||||
echo.
|
echo.
|
||||||
@@ -281,12 +282,14 @@ goto :eof
|
|||||||
) else if %option% EQU 14 (
|
) else if %option% EQU 14 (
|
||||||
call :updates
|
call :updates
|
||||||
) else if %option% EQU 15 (
|
) else if %option% EQU 15 (
|
||||||
call :local
|
call :setupDiag
|
||||||
) else if %option% EQU 16 (
|
) else if %option% EQU 16 (
|
||||||
call :online
|
call :local
|
||||||
) else if %option% EQU 17 (
|
) else if %option% EQU 17 (
|
||||||
call :diagnostic
|
call :online
|
||||||
) else if %option% EQU 18 (
|
) else if %option% EQU 18 (
|
||||||
|
call :diagnostic
|
||||||
|
) else if %option% EQU 19 (
|
||||||
call :restart
|
call :restart
|
||||||
) else if %option% EQU ? (
|
) else if %option% EQU ? (
|
||||||
call :help
|
call :help
|
||||||
@@ -738,12 +741,14 @@ goto :eof
|
|||||||
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir "%USERPROFILE%\Desktop\Backup\%now%\"
|
if not exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\" (
|
||||||
|
mkdir "%USERPROFILE%\Desktop\Backup\Regedit\%now%\"
|
||||||
|
)
|
||||||
|
|
||||||
:: ----- Create a backup of the Registry -----
|
:: ----- Create a backup of the Registry -----
|
||||||
call :print Making a backup of the Registry in: %USERPROFILE%\Desktop\Backup\%now%\
|
call :print Making a backup of the Registry in: %USERPROFILE%\Desktop\Backup\Regedit\%now%\
|
||||||
|
|
||||||
if exist "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg" (
|
if exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg" (
|
||||||
echo.An unexpected error has occurred.
|
echo.An unexpected error has occurred.
|
||||||
echo.
|
echo.
|
||||||
echo. Changes were not carried out in the registry.
|
echo. Changes were not carried out in the registry.
|
||||||
@@ -753,17 +758,17 @@ goto :eof
|
|||||||
pause>nul
|
pause>nul
|
||||||
goto :eof
|
goto :eof
|
||||||
) else (
|
) else (
|
||||||
reg Export HKCR "%USERPROFILE%\Desktop\Backup\%now%\HKCR.reg"
|
reg Export HKCR "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCR.reg"
|
||||||
reg Export HKCU "%USERPROFILE%\Desktop\Backup\%now%\HKCU.reg"
|
reg Export HKCU "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCU.reg"
|
||||||
reg Export HKLM "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg"
|
reg Export HKLM "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg"
|
||||||
reg Export HKU "%USERPROFILE%\Desktop\Backup\%now%\HKU.reg"
|
reg Export HKU "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKU.reg"
|
||||||
reg Export HKCC "%USERPROFILE%\Desktop\Backup\%now%\HKCC.reg"
|
reg Export HKCC "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCC.reg"
|
||||||
)
|
)
|
||||||
|
|
||||||
:: ----- Checking backup -----
|
:: ----- Checking backup -----
|
||||||
call :print Checking the backup.
|
call :print Checking the backup.
|
||||||
|
|
||||||
if not exist "%USERPROFILE%\Desktop\Backup\%now%\HKLM.reg" (
|
if not exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg" (
|
||||||
echo.An unexpected error has occurred.
|
echo.An unexpected error has occurred.
|
||||||
echo.
|
echo.
|
||||||
echo. Something went wrong.
|
echo. Something went wrong.
|
||||||
@@ -962,6 +967,33 @@ goto :eof
|
|||||||
:: /*************************************************************************************/
|
:: /*************************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
:: Run SetupDiag.
|
||||||
|
:: void setupDiag();
|
||||||
|
:: /*************************************************************************************/
|
||||||
|
:setupDiag
|
||||||
|
for /f "tokens=1-5 delims=/., " %%a in ("%date%") do (
|
||||||
|
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
||||||
|
)
|
||||||
|
|
||||||
|
if not exist "%USERPROFILE%\Desktop\Backup\Logs\%now%\" (
|
||||||
|
mkdir "%USERPROFILE%\Desktop\Backup\Logs\%now%\"
|
||||||
|
)
|
||||||
|
|
||||||
|
call :print Running the standalone diagnostic tool SetupDiag
|
||||||
|
|
||||||
|
if %family% EQU 10 (
|
||||||
|
call "%~dp0SetupDiag.exe" /Output:"%USERPROFILE%\Desktop\Backup\Logs\%now%\WindowsUpdate.log" /Format:log
|
||||||
|
) else (
|
||||||
|
echo.Sorry, this option is not available on this Operative System.
|
||||||
|
)
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo.Press any key to continue . . .
|
||||||
|
pause>nul
|
||||||
|
goto :eof
|
||||||
|
:: /*************************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
:: Explore other local solutions.
|
:: Explore other local solutions.
|
||||||
:: void local();
|
:: void local();
|
||||||
:: /*************************************************************************************/
|
:: /*************************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user