mirror of
https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool.git
synced 2026-08-18 15:33:35 +08:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4b64047eb | ||
|
|
7cb1f92d65 | ||
|
|
11d6973430 | ||
|
|
3a9e4b99c8 | ||
|
|
2c88f81580 | ||
|
|
87ff52faf5 | ||
|
|
e54838386c | ||
|
|
81151e440d | ||
|
|
a905c2e5d3 | ||
|
|
a8122e0e6f | ||
|
|
76dc98c832 | ||
|
|
8755b57387 | ||
|
|
8f6a35cb41 | ||
|
|
fd3d6648ea |
@@ -1,100 +0,0 @@
|
||||
# How To Report an Issue or Request a Feature
|
||||
|
||||
Please read carefully this document. It will guide you to submit an [issue](#issue)
|
||||
or [feature](feature).
|
||||
|
||||
<a name="started"></a>
|
||||
## Before starting
|
||||
|
||||
### Step 1:
|
||||
|
||||
**Requirements**
|
||||
|
||||
* [ ] Did you follow the installation steps described in
|
||||
[README.md](https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool/blob/master/README.md)?
|
||||
* [ ] Do you use the latest version?
|
||||
|
||||
* [x] Complete with an X inside the brackets for the requirements met.
|
||||
|
||||
### Step 2:
|
||||
|
||||
**Use the GitHub issue search**
|
||||
|
||||
* Check if the issue or feature has already been submited.
|
||||
|
||||
### Step 3:
|
||||
|
||||
**Check if the issue has been fixed**
|
||||
|
||||
* try to reproduce it using the latest master or development branch in the
|
||||
repository.
|
||||
|
||||
<a name="issue"></a>
|
||||
## Report an Issue
|
||||
|
||||
### Step 1:
|
||||
|
||||
**Type the title**
|
||||
|
||||
* Type a title for your issue and includes the word (Issue).
|
||||
|
||||
### Step 2:
|
||||
|
||||
**Describe your environment**
|
||||
|
||||
* **OS version:** _____
|
||||
* **Project version:** _____
|
||||
|
||||
### Step 3:
|
||||
|
||||
**Describe the problem**
|
||||
|
||||
* Type a description for your issue.
|
||||
|
||||
### Step 4:
|
||||
|
||||
**Steps to reproduce**
|
||||
|
||||
* First Step
|
||||
* Second Step
|
||||
* ...
|
||||
* Expected behavior: What do you expect to happen?
|
||||
* Actual behavior: What really happens?
|
||||
* Reproduces how often: What percentage of the time does it reproduce?
|
||||
|
||||
### Step 5:
|
||||
|
||||
**Additional Information**
|
||||
|
||||
* Any additional information, configuration or data that might be necessary
|
||||
to reproduce the issue.
|
||||
|
||||
### Step 6:
|
||||
|
||||
**Screenshot**
|
||||
|
||||
* Provide a screenshot that show your issue.
|
||||
|
||||
<a name="feature"></a>
|
||||
## Request a Feature
|
||||
|
||||
### Step 1:
|
||||
|
||||
**Type the title**
|
||||
|
||||
* Type a title for your issue and includes the word (Feature).
|
||||
|
||||
### Step 2:
|
||||
|
||||
**Describe the problem**
|
||||
|
||||
* Type a description for your feature.
|
||||
|
||||
### Step 3:
|
||||
|
||||
**Additional Information**
|
||||
|
||||
* Why do you want this functionality?
|
||||
* How do you expect it to work?
|
||||
|
||||
> Thank you for collaborating with this project.
|
||||
351
README.md
351
README.md
@@ -2,137 +2,310 @@
|
||||
<h1> Reset Windows Update Tool (Script) </h1>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<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">
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
<div align="center">
|
||||
<a href="#changelog">
|
||||
<img src="https://img.shields.io/badge/stability-stable-green.svg" alt="Status">
|
||||
<img src="https://img.shields.io/badge/stability-frozen-blue.svg" alt="Status">
|
||||
</a>
|
||||
<a href="#changelog">
|
||||
<img src="https://img.shields.io/badge/release-v10.5.3.4-blue.svg" alt="Version">
|
||||
<img src="https://img.shields.io/badge/release-v10.5.4.1-blue.svg" alt="Version">
|
||||
</a>
|
||||
<a href="#changelog">
|
||||
<img src="https://img.shields.io/badge/update-november-yellowgreen.svg" alt="Update">
|
||||
</a>
|
||||
<a href="https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc" target="_blank">
|
||||
<img src="https://img.shields.io/badge/downloads-%2B570K-green.svg" alt="License">
|
||||
</a>
|
||||
<a href="#license">
|
||||
<img src="https://img.shields.io/badge/license-MIT%20License-green.svg" alt="License">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<a href="https://twitter.com/intent/follow?screen_name=wureset">
|
||||
<img src="https://img.shields.io/twitter/follow/wureset.svg?style=social" alt="Twitter">
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
<div align="center">
|
||||
<a href="https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet">
|
||||
<img src="https://github.com/ManuelGil/Reset-Windows-Update-Tool/blob/master/docs/images/lifecycle.png?raw=true" alt="Lifecycle">
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
This script reset the Windows Update Components.
|
||||
|
||||
<a name="started"></a>
|
||||
- Wiki: [:us:] [:es:] [:it:] [:brazil:] [:fr:] [:de:]
|
||||
|
||||
- Issues: [Issue Tracker](https://github.com/ManuelGil/Reset-Windows-Update-Tool/issues)
|
||||
|
||||
## :traffic_light: Getting Started
|
||||
|
||||
This page will help you get started with Reset Windows Update Tool (Script).
|
||||
|
||||
<a name="requirements"></a>
|
||||
### Requirements
|
||||
|
||||
* Microsoft Windows XP or later
|
||||
- Microsoft Windows XP or later
|
||||
|
||||
<a name="installation"></a>
|
||||
### Installation
|
||||
|
||||
* This file don't require installation
|
||||
- This file don't require installation
|
||||
|
||||
## :gift: Donate!
|
||||
|
||||
[Click here for donation options!](https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki/Donate)
|
||||
|
||||
<a name="changelog"></a>
|
||||
|
||||
## :information_source: Changelog
|
||||
|
||||
**10.5.4.1** (11/02/2020) [5 Years Celebration](https://wureset.com)
|
||||
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows 8, Windows 8.1 and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
Old Windows compatibility removed
|
||||
</li>
|
||||
<li>
|
||||
Add Reset Windows Store command
|
||||
</li>
|
||||
<li>
|
||||
Removed the standalone diagnostic tool
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
**10.5.3.7** (06/04/2019)
|
||||
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||
and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</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)
|
||||
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||
and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
Verification of services restore
|
||||
</li>
|
||||
<li>
|
||||
Force Group Policy Update.
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
**10.5.3.5** (12/22/2017)
|
||||
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||
and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
Link to official website
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
**10.5.3.4** (11/27/2017)
|
||||
|
||||
* <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>
|
||||
Correction of texts in the menus
|
||||
</li>
|
||||
<li>
|
||||
Verification of errors in the hard disk
|
||||
</li>
|
||||
<li>
|
||||
Checking when renaming the 'SoftwareDistribution' folder
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||
and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
Correction of texts in the menus
|
||||
</li>
|
||||
<li>
|
||||
Verification of errors in the hard disk
|
||||
</li>
|
||||
<li>
|
||||
Checking when renaming the 'SoftwareDistribution' folder
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
**10.5.3.3** (07/23/2017)
|
||||
|
||||
* <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>
|
||||
Compatibility with all versions of Windows 10
|
||||
(includes technical preview)
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
- <table border="0" cellpadding="4">
|
||||
<tr>
|
||||
<td>
|
||||
Requirements:
|
||||
</td>
|
||||
<td>
|
||||
Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1
|
||||
and Windows 10
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filename:
|
||||
</td>
|
||||
<td>
|
||||
ResetWUEng.cmd
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Changes:
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
Compatibility with all versions of Windows 10
|
||||
(includes technical preview)
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<a name="Donate"></a>
|
||||
## :gift: Donate!
|
||||
## :octocat: Contributing [](https://github.com/ManuelGil/Reset-Windows-Update-Tool/issues)
|
||||
|
||||
If you want to help me to continue this project, you might donate via PayPal.
|
||||
Please read [CONTRIBUTING.md](https://github.com/ManuelGil/Reset-Windows-Update-Tool/blob/master/CONTRIBUTING.md)
|
||||
for details on our code of conduct.
|
||||
|
||||
<a href="https://paypal.me/ManuelFGil"><img src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_donate_92x26.png" alt="Donate via PayPal"></a>
|
||||
|
||||
<a name="authors"></a>
|
||||
## :eyeglasses: Authors
|
||||
|
||||
* **Manuel Gil** - *Initial work* - [ManuelGil](https://github.com/ManuelGil)
|
||||
- **Manuel Gil** - _Owner_ - [ManuelGil](https://github.com/ManuelGil)
|
||||
|
||||
See also the list of [contributors](https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool/contributors)
|
||||
who participated in this project.
|
||||
who participated in this project.
|
||||
|
||||
<a name="license"></a>
|
||||
|
||||
## :memo: License
|
||||
|
||||
Reset Windows Update Tool (Script) is licensed under the MIT License - see the
|
||||
[MIT License](https://opensource.org/licenses/MIT) for details.
|
||||
[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
|
||||
|
||||
178
ResetWUEng.cmd
178
ResetWUEng.cmd
@@ -1,8 +1,8 @@
|
||||
:: ==================================================================================
|
||||
:: ==================================================================================
|
||||
:: NAME: Reset Windows Update Tool.
|
||||
:: DESCRIPTION: This script reset the Windows Update Components.
|
||||
:: AUTHOR: Manuel Gil.
|
||||
:: VERSION: 10.5.3.4
|
||||
:: 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
|
||||
@@ -154,6 +139,7 @@ goto :eof
|
||||
echo. Can this using a business or test version.
|
||||
echo.
|
||||
echo. if not, verify that your system has the correct security fix.
|
||||
|
||||
echo.
|
||||
|
||||
echo.Press any key to continue . . .
|
||||
@@ -236,11 +222,14 @@ goto :eof
|
||||
echo. 10. Cleans up the superseded components.
|
||||
echo. 11. Deletes any incorrect registry values.
|
||||
echo. 12. Repairs/Resets Winsock settings.
|
||||
echo. 13. Searches Windows updates.
|
||||
echo. 14. Explores other local solutions.
|
||||
echo. 15. Explores other online solutions.
|
||||
echo. 16. Downloads the Diagnostic Tools.
|
||||
echo. 17. Restarts your PC.
|
||||
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.
|
||||
@@ -274,14 +263,20 @@ goto :eof
|
||||
) else if %option% EQU 12 (
|
||||
call :winsock
|
||||
) else if %option% EQU 13 (
|
||||
call :updates
|
||||
call :gpupdate
|
||||
) else if %option% EQU 14 (
|
||||
call :local
|
||||
call :updates
|
||||
) else if %option% EQU 15 (
|
||||
call :online
|
||||
call :wsreset
|
||||
) else if %option% EQU 16 (
|
||||
call :diagnostic
|
||||
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
|
||||
@@ -292,9 +287,9 @@ goto :eof
|
||||
echo.Press any key to continue . . .
|
||||
pause>nul
|
||||
)
|
||||
|
||||
|
||||
goto menu
|
||||
goto :eof
|
||||
goto :eof
|
||||
:: /*************************************************************************************/
|
||||
|
||||
|
||||
@@ -334,6 +329,9 @@ 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.
|
||||
|
||||
@@ -437,8 +435,10 @@ 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.
|
||||
@@ -496,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.
|
||||
@@ -726,10 +728,14 @@ goto :eof
|
||||
set now=%%a%%b%%c%%d%time:~0,2%%time:~3,2%
|
||||
)
|
||||
|
||||
:: ----- Create a backup of the Registry -----
|
||||
call :print Making a backup 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.
|
||||
@@ -739,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.
|
||||
|
||||
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.
|
||||
@@ -773,7 +783,7 @@ goto :eof
|
||||
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
|
||||
|
||||
@@ -889,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();
|
||||
:: /*************************************************************************************/
|
||||
@@ -901,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
|
||||
@@ -917,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();
|
||||
:: /*************************************************************************************/
|
||||
@@ -972,7 +1035,7 @@ goto :eof
|
||||
:: void help();
|
||||
:: /*************************************************************************************/
|
||||
:help
|
||||
start %~dp0HELP.chm
|
||||
start https://github.com/ManuelGil/Reset-Windows-Update-Tool/wiki
|
||||
goto :eof
|
||||
:: /*************************************************************************************/
|
||||
|
||||
@@ -983,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.
|
||||
@@ -1004,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.
|
||||
@@ -1013,7 +1073,7 @@ goto :eof
|
||||
echo.Press any key to continue . . .
|
||||
pause>nul
|
||||
)
|
||||
|
||||
|
||||
goto diagnostic
|
||||
goto :eof
|
||||
:: /*************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user