mirror of
https://github.com/ManuelGil/Script-Reset-Windows-Update-Tool.git
synced 2026-08-18 15:33:35 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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.
|
||||
109
README.md
109
README.md
@@ -2,21 +2,43 @@
|
||||
<h1> Reset Windows Update Tool (Script) </h1>
|
||||
</div>
|
||||
|
||||
<div align="center">
|
||||
<a href="http://wureset.com/">
|
||||
<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.3.6-blue.svg" alt="Version">
|
||||
</a>
|
||||
<a href="#changelog">
|
||||
<img src="https://img.shields.io/badge/update-november-yellowgreen.svg" alt="Update">
|
||||
<img src="https://img.shields.io/badge/update-juny-yellowgreen.svg" alt="Update">
|
||||
</a>
|
||||
<a href="https://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc">
|
||||
<img src="https://img.shields.io/badge/downloads-%2B500K-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/Windows-Update.png?raw=true" alt="Lifecycle">
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
This script reset the Windows Update Components.
|
||||
|
||||
<a name="started"></a>
|
||||
@@ -37,6 +59,81 @@ This page will help you get started with Reset Windows Update Tool (Script).
|
||||
<a name="changelog"></a>
|
||||
## :information_source: Changelog
|
||||
|
||||
**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><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>
|
||||
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><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>
|
||||
Link to official website
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
**10.5.3.4** (11/27/2017)
|
||||
|
||||
* <table border="0" cellpadding="4">
|
||||
@@ -116,6 +213,12 @@ This page will help you get started with Reset Windows Update Tool (Script).
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<a name="contributing"></a>
|
||||
## :octocat: Contributing [](https://github.com/ManuelGil/Reset-Windows-Update-Tool/issues)
|
||||
|
||||
Please read [CONTRIBUTING.md](https://github.com/ManuelGil/Reset-Windows-Update-Tool/blob/master/CONTRIBUTING.md)
|
||||
for details on our code of conduct.
|
||||
|
||||
<a name="Donate"></a>
|
||||
## :gift: Donate!
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
:: ==================================================================================
|
||||
:: ==================================================================================
|
||||
:: NAME: Reset Windows Update Tool.
|
||||
:: DESCRIPTION: This script reset the Windows Update Components.
|
||||
:: AUTHOR: Manuel Gil.
|
||||
:: VERSION: 10.5.3.4
|
||||
:: VERSION: 10.5.3.6 [+500K Downloads Celebration]
|
||||
:: WEBSITE: http://wureset.com
|
||||
:: ==================================================================================
|
||||
|
||||
|
||||
@@ -154,6 +155,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 +238,12 @@ 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. Force Group Policy Update.
|
||||
echo. 14. Searches Windows updates.
|
||||
echo. 15. Explores other local solutions.
|
||||
echo. 16. Explores other online solutions.
|
||||
echo. 17. Downloads the Diagnostic Tools.
|
||||
echo. 18. Restarts your PC.
|
||||
echo.
|
||||
echo. ?. Help. 0. Close.
|
||||
echo.
|
||||
@@ -274,14 +277,16 @@ 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 :local
|
||||
) else if %option% EQU 16 (
|
||||
call :diagnostic
|
||||
call :online
|
||||
) else if %option% EQU 17 (
|
||||
call :diagnostic
|
||||
) else if %option% EQU 18 (
|
||||
call :restart
|
||||
) else if %option% EQU ? (
|
||||
call :help
|
||||
@@ -334,6 +339,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 +445,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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Reregister the BITS files and the Windows Update files -----
|
||||
call :print Reregister the BITS files and the Windows Update files.
|
||||
@@ -496,9 +506,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.
|
||||
@@ -889,6 +901,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();
|
||||
:: /*************************************************************************************/
|
||||
@@ -972,7 +1011,7 @@ goto :eof
|
||||
:: void help();
|
||||
:: /*************************************************************************************/
|
||||
:help
|
||||
start %~dp0HELP.chm
|
||||
start http://docs.wureset.com/
|
||||
goto :eof
|
||||
:: /*************************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user