18 Commits

Author SHA1 Message Date
ManuelGil
88a5bf9f47 docs: 📝 update documentation 2023-03-24 22:10:20 -05:00
ManuelGil
f4b64047eb Update README.md 2020-11-02 16:39:56 -05:00
ManuelGil
7cb1f92d65 Update README.md 2020-11-02 16:38:14 -05:00
ManuelGil
11d6973430 Update version 10.5.4.1 2020-11-02 16:33:46 -05:00
ManuelGil
3a9e4b99c8 Update version 10.5.3.7 2019-06-03 22:26:02 -05:00
ManuelGil
2c88f81580 Update Regedit Backup 2019-04-25 22:49:48 -05:00
ManuelGil
87ff52faf5 Delete aka.ms/startmenuTS 2019-04-18 17:28:37 -05:00
ManuelGil
e54838386c Update README.md 2019-02-15 22:32:02 -05:00
ManuelGil
81151e440d Update to version 10.5.3.6 2018-06-07 21:54:39 -05:00
Manuel Gil
a905c2e5d3 Update README.md 2018-03-28 09:10:14 -05:00
Manuel Gil
a8122e0e6f Update README.md 2018-03-28 09:03:16 -05:00
Manuel Gil
76dc98c832 docs update 2018-03-26 18:18:14 -05:00
Manuel Gil
8755b57387 Update README.md 2017-12-23 09:25:34 -05:00
Manuel Gil
8f6a35cb41 Update README.md 2017-12-22 20:47:53 -05:00
Manuel Gil
fd3d6648ea Update to version 10.5.3.5 2017-12-22 20:42:11 -05:00
Manuel Gil
7bedd614bc Readme Update 2017-12-03 10:08:58 -05:00
Manuel Gil
fc9dbdb6c2 Update to version 10.5.3.4 2017-11-30 08:29:56 -05:00
Manuel Gil
218af1b70f Create README.md 2017-07-01 13:42:55 -05:00
2 changed files with 313 additions and 143 deletions

63
README.md Normal file
View File

@@ -0,0 +1,63 @@
# Reset Windows Update Tool (Script)
<div align="center">
<a href="https://wureset.com/">
<img src="https://www.wureset.com/assets/images/logo.png" alt="Logo" height="300" width="300">
</a>
</div>
<br />
[![stability-deprecated](https://img.shields.io/badge/stability-deprecated-red.svg)]()
⚠ Deprecated! See [wureset-tools/script-wureset](https://github.com/wureset-tools/script-wureset)
The Reset Windows Update Tool is a powerful troubleshooting tool designed to help users fix various issues related to Windows updates. This tool provides a wide range of functions to help reset and repair various components of the Windows Update service, as well as address other common system issues.
## Features
The Reset Windows Update Tool provides the following features:
- Resetting Windows Update components to their default settings
- Deleting temporary files to free up disk space
- Changing invalid values in the Windows Registry to ensure smooth operation
- Scanning and repairing protected system files that may be corrupted using the "sfc /scannow" command
- Detecting and repairing corruptions in the Windows system image
- Cleaning up superseded components to optimize system performance and free up disk space
## Getting Started
To use the Reset Windows Update Tool, simply download the tool and run it on your Windows system. The tool will guide you through the process of resetting and repairing various components of the Windows Update service, as well as other common system issues.
## Support
- Wiki: [:us:] [:es:] [:it:] [:brazil:] [:fr:] [:de:]
## Version list
The following table lists version numbers:
| Version | Date | Milestone |
|:---|:---:|:---|
| **10.5.5** | 24/03/2023 | Migration to [@wureset-tools](https://github.com/wureset-tools) |
| **10.5.4.1** | 11/02/2020 | 5 Years Celebration |
| **10.5.3.7** | 06/04/2019 | |
| **10.5.3.6** | 06/07/2018 | +500K Downloads Celebration |
| **10.5.3.5** | 12/22/2017 | |
| **10.5.3.4** | 11/27/2017 | |
| **10.5.3.3** | 07/23/2017 | |
## Credits
This project is developed and maintained by [Manuel Gil](https://github.com/ManuelGil).
## License
Reset Windows Update Tool (Script) is licensed under the MIT License - see the [MIT License](https://opensource.org/licenses/MIT) for details.
[:us:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki
[:es:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Home-%5Bes%5D
[:it:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Home-%5Bit%5D
[:brazil:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Home-%5Bbr%5D
[:fr:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Home-%5Bfr%5D
[:de:]: https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Home-%5Bde%5D

View File

@@ -1,8 +1,8 @@
:: ==================================================================================
:: ==================================================================================
:: NAME: Reset Windows Update Tool.
:: DESCRIPTION: This script reset the Windows Update Components.
:: AUTHOR: Manuel Gil.
:: VERSION: 10.5.3.2
:: VERSION: 10.5.4.1 - Date: 11/02/2020
:: ==================================================================================
@@ -12,7 +12,7 @@
:mode
echo off
title Reset Windows Update Tool.
mode con cols=78 lines=32
mode con cols=90 lines=36
color 17
cls
@@ -54,58 +54,43 @@ goto :eof
:: void getValues();
:: /************************************************************************************/
:getValues
for /f "tokens=4-5 delims=[] " %%a in ('ver') do set version=%%a%%b
for %%a in (%version%) do set version=%%a
for /f "tokens=4 delims=[] " %%a in ('ver') do set version=%%a
if %version% EQU 5.1.2600 (
:: Name: "Microsoft Windows XP"
set name=Microsoft Windows XP
:: Family: Windows 5
set family=5
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 5.2.3790 (
:: Name: "Microsoft Windows XP Professional x64 Edition"
set name=Microsoft Windows XP Professional x64 Edition
:: Family: Windows 5
set family=5
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 6.0.6000 (
if %version% EQU 6.0.6000 (
:: Name: "Microsoft Windows Vista"
set name=Microsoft Windows Vista
:: Family: Windows 6
set family=6
:: Compatibility: Yes
set allow=Yes
:: Compatibility: No
set allow=No
) else if %version% EQU 6.0.6001 (
:: Name: "Microsoft Windows Vista SP1"
set name=Microsoft Windows Vista SP1
:: Family: Windows 6
set family=6
:: Compatibility: Yes
set allow=Yes
:: Compatibility: No
set allow=No
) else if %version% EQU 6.0.6002 (
:: Name: "Microsoft Windows Vista SP2"
set name=Microsoft Windows Vista SP2
:: Family: Windows 6
set family=6
:: Compatibility: Yes
set allow=Yes
:: Compatibility: No
set allow=No
) else if %version% EQU 6.1.7600 (
:: Name: "Microsoft Windows 7"
set name=Microsoft Windows 7
:: Family: Windows 7
set family=7
:: Compatibility: Yes
set allow=Yes
:: Compatibility: No
set allow=No
) else if %version% EQU 6.1.7601 (
:: Name: "Microsoft Windows 7 SP1"
set name=Microsoft Windows 7 SP1
:: Family: Windows 7
set family=7
:: Compatibility: Yes
set allow=Yes
:: Compatibility: No
set allow=No
) else if %version% EQU 6.2.9200 (
:: Name: "Microsoft Windows 8"
set name=Microsoft Windows 8
@@ -127,39 +112,21 @@ goto :eof
set family=8
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 10.0.10240 (
:: Name: "Microsoft Windows 10 Threshold 1"
set name=Microsoft Windows 10 Threshold 1
:: Family: Windows 10
set family=10
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 10.0.10586 (
:: Name: "Microsoft Windows 10 Threshold 2"
set name=Microsoft Windows 10 Threshold 2
:: Family: Windows 10
set family=10
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 10.0.14393 (
:: Name: "Microsoft Windows 10 Redstone 1"
set name=Microsoft Windows 10 Redstone 1
:: Family: Windows 10
set family=10
:: Compatibility: Yes
set allow=Yes
) else if %version% EQU 10.0.15063 (
:: Name: "Microsoft Windows 10 Creators Update"
set name=Microsoft Windows 10 Creators Update
:: Family: Windows 10
set family=10
:: Compatibility: Yes
set allow=Yes
) else (
:: Name: "Unknown"
set name=Unknown
:: Compatibility: No
set allow=No
ver | find "10.0." > nul
if %errorlevel% EQU 0 (
:: Name: "Microsoft Windows 10"
set name=Microsoft Windows 10
:: Family: Windows 10
set family=10
:: Compatibility: Yes
set allow=Yes
) else (
:: Name: "Unknown"
set name=Unknown
:: Compatibility: No
set allow=No
)
)
call :print %name% detected . . .
@@ -171,7 +138,8 @@ goto :eof
echo. An error occurred while attempting to verify your system.
echo. Can this using a business or test version.
echo.
echo. If not, verify that your system has the correct security fix.
echo. if not, verify that your system has the correct security fix.
echo.
echo.Press any key to continue . . .
@@ -219,16 +187,19 @@ goto :eof
echo. to review the code if you're unsure.
echo.
choice /c YN /n /m "Do you want to continue with this process? (Yes/No) "
if %errorlevel% EQU 1 goto menu
if %errorlevel% EQU 2 goto close
echo.An unexpected error has occurred.
echo.
echo.Press any key to continue . . .
pause>nul
goto menu
choice /c YN /n /m "Do you want to continue with this process? (Y/N) "
if %errorlevel% EQU 1 (
goto menu
) else if %errorlevel% EQU 2 (
goto close
) else if %errorlevel% EQU 9009 (
echo.
echo.An unexpected error has occurred.
echo.
echo.Press any key to continue . . .
pause>nul
goto menu
)
goto :eof
:: /*************************************************************************************/
@@ -239,22 +210,26 @@ goto :eof
:menu
call :print This tool reset the Windows Update Components.
echo. 1. Open the system protection.
echo. 2. Reset Windows Update Components.
echo. 3. Delete temporary files in Windows.
echo. 4. Open the Internet Explorer options.
echo. 5. Scans all protected system files.
echo. 6. Scan the image to check for corruption.
echo. 7. Check the detected corruptions.
echo. 8. Repair the image.
echo. 9. Clean up the superseded components.
echo. 10. Change invalid values in the Registry.
echo. 11. Reset the Winsock settings.
echo. 12. Search updates.
echo. 13. Explore other local solutions.
echo. 14. Explore other online solutions.
echo. 15. Download Diagnostic.
echo. 16. Restart your PC.
echo. 1. Opens the system protection.
echo. 2. Resets the Windows Update Components.
echo. 3. Deletes the temporary files in Windows.
echo. 4. Opens the Internet Explorer options.
echo. 5. Runs Chkdsk on the Windows partition.
echo. 6. Runs the System File Checker tool.
echo. 7. Scans the image for component store corruption.
echo. 8. Checks whether the image has been flagged as corrupted.
echo. 9. Performs repair operations automatically.
echo. 10. Cleans up the superseded components.
echo. 11. Deletes any incorrect registry values.
echo. 12. Repairs/Resets Winsock settings.
echo. 13. Forces Group Policy Update.
echo. 14. Searches Windows updates.
echo. 15. Resets the Windows Store.
echo. 16. Finds the Windows Product Key.
echo. 17. Explores other local solutions.
echo. 18. Explores other online solutions.
echo. 19. Downloads the Diagnostic Tools.
echo. 20. Restarts your PC.
echo.
echo. ?. Help. 0. Close.
echo.
@@ -272,28 +247,36 @@ goto :eof
) else if %option% EQU 4 (
call :iOptions
) else if %option% EQU 5 (
call :sfc
call :chkdsk
) else if %option% EQU 6 (
call :dism1
call :sfc
) else if %option% EQU 7 (
call :dism2
call :dism1
) else if %option% EQU 8 (
call :dism3
call :dism2
) else if %option% EQU 9 (
call :dism4
call :dism3
) else if %option% EQU 10 (
call :regedit
call :dism4
) else if %option% EQU 11 (
call :winsock
call :regedit
) else if %option% EQU 12 (
call :updates
call :winsock
) else if %option% EQU 13 (
call :local
call :gpupdate
) else if %option% EQU 14 (
call :online
call :updates
) else if %option% EQU 15 (
call :diagnostic
call :wsreset
) else if %option% EQU 16 (
call :productKey
) else if %option% EQU 17 (
call :local
) else if %option% EQU 18 (
call :online
) else if %option% EQU 19 (
call :diagnostic
) else if %option% EQU 20 (
call :restart
) else if %option% EQU ? (
call :help
@@ -304,9 +287,9 @@ goto :eof
echo.Press any key to continue . . .
pause>nul
)
goto menu
goto :eof
goto :eof
:: /*************************************************************************************/
@@ -346,16 +329,19 @@ goto :eof
call :print Stopping the Windows Update services.
net stop cryptsvc
call :print Canceling the Windows Update process.
taskkill /im wuauclt.exe /f
:: ----- Checking the services status -----
call :print Checking the services status.
sc query bits | findstr /I /C:"STOPPED"
If %errorlevel% NEQ 0 (
if %errorlevel% NEQ 0 (
echo. Failed to stop the BITS service.
echo.
echo.Press any key to continue . . .
pause>nul
goto close
goto :eof
)
call :print Checking the services status.
@@ -366,7 +352,7 @@ goto :eof
echo.
echo.Press any key to continue . . .
pause>nul
goto close
goto :eof
)
call :print Checking the services status.
@@ -379,19 +365,19 @@ goto :eof
echo.
echo.Press any key to continue . . .
pause>nul
if %family% NEQ 6 goto close
if %family% NEQ 6 goto :eof
)
)
call :print Checking the services status.
sc query cryptsvc | findstr /I /C:"STOPPED"
If %errorlevel% NEQ 0 (
if %errorlevel% NEQ 0 (
echo. Failed to stop the Cryptographic Services service.
echo.
echo.Press any key to continue . . .
pause>nul
goto close
goto :eof
)
:: ----- Delete the qmgr*.dat files -----
@@ -428,6 +414,14 @@ goto :eof
if exist "%SYSTEMROOT%\SoftwareDistribution" (
attrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution"
ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak
if exist "%SYSTEMROOT%\SoftwareDistribution" (
echo.
echo. Failed to rename the SoftwareDistribution folder.
echo.
echo.Press any key to continue . . .
pause>nul
goto :eof
)
)
if exist "%SYSTEMROOT%\system32\Catroot2" (
attrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2"
@@ -441,13 +435,15 @@ goto :eof
:: ----- Reset the BITS service and the Windows Update service to the default security descriptor -----
call :print Reset the BITS service and the Windows Update service to the default security descriptor.
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;CI;CCLCSWRPLORC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOSDRCWDWO;;;WD)
sc.exe sdset bits D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA)
sc.exe sdset cryptsvc D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SO)(A;;CCLCSWLORC;;;AC)(A;;CCLCSWLORC;;;S-1-15-3-1024-3203351429-2120443784-2872670797-1918958302-2829055647-4275794519-765664414-2751773334)
sc.exe sdset trustedinstaller D:(A;CI;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCDCLCSWRPWPDTLOCRRC;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;SAFA;WDWO;;;BA)
:: ----- Reregister the BITS files and the Windows Update files -----
call :print Reregister the BITS files and the Windows Update files.
cd /d %WINDIR%\system32
cd /d %SYSTEMROOT%\system32
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
@@ -500,9 +496,11 @@ goto :eof
:: ----- Set the startup type as automatic -----
call :print Resetting the services as automatics.
sc config wuauserv start= auto
sc config bits start= auto
sc config DcomLaunch start= auto
sc.exe config wuauserv start= auto
sc.exe config bits start= delayed-auto
sc.exe config cryptsvc start= auto
sc.exe config TrustedInstaller start= demand
sc.exe config DcomLaunch start= auto
:: ----- Starting the Windows Update services -----
call :print Starting the Windows Update services.
@@ -533,7 +531,7 @@ goto :eof
:: void temp();
:: /*************************************************************************************/
:temp
call :print Deleting temporary files in Windows.
call :print Deleting the temporary files in Windows.
del /s /f /q "%TEMP%\*.*"
del /s /f /q "%SYSTEMROOT%\Temp\*.*"
@@ -556,11 +554,34 @@ goto :eof
:: /*************************************************************************************/
:: Check and repair errors on the disk.
:: void chkdsk();
:: /*************************************************************************************/
:chkdsk
call :print Check the file system and file system metadata of a volume for logical and physical errors (CHKDSK.exe).
chkdsk %SYSTEMDRIVE% /f /r
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
echo.
echo.An error occurred during operation.
)
echo.
echo.Press any key to continue . . .
pause>nul
goto :eof
:: /*************************************************************************************/
:: Scans all protected system files.
:: void sfc();
:: /*************************************************************************************/
:sfc
call :print Scans all protected system files.
call :print Scan your system files and to repair missing or corrupted system files (SFC.exe).
if %family% NEQ 5 (
sfc /scannow
@@ -568,7 +589,7 @@ goto :eof
echo.Sorry, this option is not available on this Operative System.
)
If %errorlevel% EQU 0 (
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
@@ -587,7 +608,7 @@ goto :eof
:: void dism1();
:: /*************************************************************************************/
:dism1
call :print Scanning the image to check for corruption.
call :print Scan the image for component store corruption (The DISM /ScanHealth argument).
if %family% EQU 8 (
Dism.exe /Online /Cleanup-Image /ScanHealth
@@ -597,7 +618,7 @@ goto :eof
echo.Sorry, this option is not available on this Operative System.
)
If %errorlevel% EQU 0 (
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
@@ -616,7 +637,7 @@ goto :eof
:: void dism2();
:: /*************************************************************************************/
:dism2
call :print Checking the detected corruptions.
call :print Check whether the image has been flagged as corrupted by a failed process and whether the corruption can be repaired (The DISM /CheckHealth argument).
if %family% EQU 8 (
Dism.exe /Online /Cleanup-Image /CheckHealth
@@ -626,7 +647,7 @@ goto :eof
echo.Sorry, this option is not available on this Operative System.
)
If %errorlevel% EQU 0 (
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
@@ -641,11 +662,11 @@ goto :eof
:: /*************************************************************************************/
:: Repair the image.
:: Repair the Windows image.
:: void dism3();
:: /*************************************************************************************/
:dism3
call :print Repairing the image.
call :print Scan the image for component store corruption, and then perform repair operations automatically (The DISM /RestoreHealth argument).
if %family% EQU 8 (
Dism.exe /Online /Cleanup-Image /RestoreHealth
@@ -655,7 +676,7 @@ goto :eof
echo.Sorry, this option is not available on this Operative System.
)
If %errorlevel% EQU 0 (
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
@@ -670,11 +691,11 @@ goto :eof
:: /*************************************************************************************/
:: Clean up the superseded components .
:: Clean up the superseded components.
:: void dism4();
:: /*************************************************************************************/
:dism4
call :print Clean up the superseded components.
call :print Clean up the superseded components and reduce the size of the component store (The DISM /StartComponentCleanup argument).
if %family% EQU 8 (
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
@@ -684,7 +705,7 @@ goto :eof
echo.Sorry, this option is not available on this Operative System.
)
If %errorlevel% EQU 0 (
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
@@ -703,14 +724,18 @@ goto :eof
:: void regedit();
:: /*************************************************************************************/
:regedit
for /f "tokens=1-5 delims=/, " %%a in ("%date%") do (
for /f "tokens=1-5 delims=/., " %%a in ("%date%") do (
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
)
:: ----- Create a backup of the Registry -----
call :print Making a backup copy of the Registry in: %USERPROFILE%\Desktop\Backup%now%.reg
if not exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\" (
mkdir "%USERPROFILE%\Desktop\Backup\Regedit\%now%\"
)
if exist "%USERPROFILE%\Desktop\Backup%now%.reg" (
:: ----- Create a backup of the Registry -----
call :print Making a backup of the Registry in: %USERPROFILE%\Desktop\Backup\Regedit\%now%\
if exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg" (
echo.An unexpected error has occurred.
echo.
echo. Changes were not carried out in the registry.
@@ -720,13 +745,17 @@ goto :eof
pause>nul
goto :eof
) else (
regedit /e "%USERPROFILE%\Desktop\Backup%now%.reg"
reg Export HKCR "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCR.reg"
reg Export HKCU "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCU.reg"
reg Export HKLM "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg"
reg Export HKU "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKU.reg"
reg Export HKCC "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKCC.reg"
)
:: ----- Checking backup -----
call :print Checking the backup copy.
call :print Checking the backup.
if not exist "%USERPROFILE%\Desktop\Backup%now%.reg" (
if not exist "%USERPROFILE%\Desktop\Backup\Regedit\%now%\HKLM.reg" (
echo.An unexpected error has occurred.
echo.
echo. Something went wrong.
@@ -742,12 +771,40 @@ goto :eof
:: ----- Delete keys in the Registry -----
call :print Deleting values in the Registry.
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
reg delete "HKLM\COMPONENTS\PendingXmlIdentifier" /f
reg delete "HKLM\COMPONENTS\NextQueueEntryIndex" /f
reg delete "HKLM\COMPONENTS\AdvancedInstallersNeedResolving" /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v ResetClient /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v ResetDataStoreReason /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIDValidation /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUState /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionstartTime /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results" /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Reporting" /v SamplingValue /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services" /v ReregisterAuthorizationCab /f
:: ----- Add keys in the Registry -----
call :print Adding values in the Registry.
@@ -842,6 +899,33 @@ goto :eof
:: /*************************************************************************************/
:: Forcing group policy update.
:: void gpupdate();
:: /*************************************************************************************/
:gpupdate
call :print Forcing group policy update.
if %family% NEQ 5 (
gpupdate /force
) else (
echo.Sorry, this option is not available on this Operative System.
)
if %errorlevel% EQU 0 (
echo.
echo.The operation completed successfully.
) else (
echo.
echo.An error occurred during operation.
)
echo.
echo.Press any key to continue . . .
pause>nul
goto :eof
:: /*************************************************************************************/
:: Search Updates.
:: void updates();
:: /*************************************************************************************/
@@ -854,7 +938,7 @@ goto :eof
wuauclt /resetauthorization /detectnow
if %family% EQU 10 (
start ms-settings:windowsupdate
start ms-settings:windowsupdate-action
) else (
if %family% NEQ 5 (
start wuapp.exe
@@ -870,6 +954,32 @@ goto :eof
:: /*************************************************************************************/
:: Reset the Windows Store.
:: void wsreset();
:: /*************************************************************************************/
:wsreset
call :print Resetting the Windows Store.
wsreset
goto :eof
:: /*************************************************************************************/
:: Get the Windows Product Key.
:: void productKey();
:: /*************************************************************************************/
:productKey
call :print Getting the Windows Product Key.
wmic path SoftwareLicensingService get OA3xOriginalProductKey
echo.
echo.Press any key to continue . . .
pause>nul
goto :eof
:: /*************************************************************************************/
:: Explore other local solutions.
:: void local();
:: /*************************************************************************************/
@@ -925,7 +1035,7 @@ goto :eof
:: void help();
:: /*************************************************************************************/
:help
start %~dp0Help.chm
start https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki
goto :eof
:: /*************************************************************************************/
@@ -936,11 +1046,10 @@ goto :eof
:diagnostic
call :print Download and run diagnostics for your system.
echo. 1. Windows Update on Windows 7, Windows 8 and Windows 8.1.
echo. 1. Windows Update on Windows 8 and Windows 8.1.
echo. 2. Windows Update on Windows 10.
echo. 3. Apps on Windows 8.1.
echo. 4. Apps on Windows 10.
echo. 5. Start Menu on Windows 10.
echo.
echo. 0. Back.
echo.
@@ -957,8 +1066,6 @@ goto :eof
start http://go.microsoft.com/fwlink/p/?LinkId=268423
) else if %option% EQU 4 (
start http://aka.ms/diag_apps10
) else if %option% EQU 5 (
start http://aka.ms/startmenuTS
) else (
echo.
echo.Invalid option.
@@ -966,7 +1073,7 @@ goto :eof
echo.Press any key to continue . . .
pause>nul
)
goto diagnostic
goto :eof
:: /*************************************************************************************/