|
1 | | -:: ================================================================================== |
| 1 | +:: ================================================================================== |
2 | 2 | :: NAME: Reset Windows Update Tool. |
3 | 3 | :: DESCRIPTION: This script reset the Windows Update Components. |
4 | 4 | :: AUTHOR: Manuel Gil. |
5 | | -:: VERSION: 10.5.3.5 |
| 5 | +:: VERSION: 10.5.3.6 [+500K Downloads Celebration] |
| 6 | +:: WEBSITE: http://wureset.com |
6 | 7 | :: ================================================================================== |
7 | 8 |
|
8 | 9 |
|
@@ -154,6 +155,7 @@ goto :eof |
154 | 155 | echo. Can this using a business or test version. |
155 | 156 | echo. |
156 | 157 | echo. if not, verify that your system has the correct security fix. |
| 158 | + |
157 | 159 | echo. |
158 | 160 |
|
159 | 161 | echo.Press any key to continue . . . |
@@ -236,11 +238,12 @@ goto :eof |
236 | 238 | echo. 10. Cleans up the superseded components. |
237 | 239 | echo. 11. Deletes any incorrect registry values. |
238 | 240 | echo. 12. Repairs/Resets Winsock settings. |
239 | | -echo. 13. Searches Windows updates. |
240 | | -echo. 14. Explores other local solutions. |
241 | | -echo. 15. Explores other online solutions. |
242 | | -echo. 16. Downloads the Diagnostic Tools. |
243 | | -echo. 17. Restarts your PC. |
| 241 | +echo. 13. Force Group Policy Update. |
| 242 | +echo. 14. Searches Windows updates. |
| 243 | +echo. 15. Explores other local solutions. |
| 244 | +echo. 16. Explores other online solutions. |
| 245 | +echo. 17. Downloads the Diagnostic Tools. |
| 246 | +echo. 18. Restarts your PC. |
244 | 247 | echo. |
245 | 248 | echo. ?. Help. 0. Close. |
246 | 249 | echo. |
@@ -274,14 +277,16 @@ goto :eof |
274 | 277 | ) else if %option% EQU 12 ( |
275 | 278 | call :winsock |
276 | 279 | ) else if %option% EQU 13 ( |
277 | | -call :updates |
| 280 | +call :gpupdate |
278 | 281 | ) else if %option% EQU 14 ( |
279 | | -call :local |
| 282 | +call :updates |
280 | 283 | ) else if %option% EQU 15 ( |
281 | | -call :online |
| 284 | +call :local |
282 | 285 | ) else if %option% EQU 16 ( |
283 | | -call :diagnostic |
| 286 | +call :online |
284 | 287 | ) else if %option% EQU 17 ( |
| 288 | +call :diagnostic |
| 289 | +) else if %option% EQU 18 ( |
285 | 290 | call :restart |
286 | 291 | ) else if %option% EQU ? ( |
287 | 292 | call :help |
@@ -334,6 +339,9 @@ goto :eof |
334 | 339 | call :print Stopping the Windows Update services. |
335 | 340 | net stop cryptsvc |
336 | 341 |
|
| 342 | +call :print Canceling the Windows Update process. |
| 343 | +taskkill /im wuauclt.exe /f |
| 344 | + |
337 | 345 | :: ----- Checking the services status ----- |
338 | 346 | call :print Checking the services status. |
339 | 347 |
|
@@ -437,8 +445,10 @@ goto :eof |
437 | 445 | :: ----- Reset the BITS service and the Windows Update service to the default security descriptor ----- |
438 | 446 | call :print Reset the BITS service and the Windows Update service to the default security descriptor. |
439 | 447 |
|
440 | | -sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) |
441 | | -sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU) |
| 448 | +sc.exe sdset wuauserv D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) |
| 449 | +sc.exe sdset bits D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) |
| 450 | +sc.exe sdset cryptsvc D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) |
| 451 | +sc.exe sdset trustedinstaller D:(A;;CCLCSWLOCRRC;;;AU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLCRSDRCWDWO;;;SO)(A;;CCLCSWRPWPDTLOCRRC;;;SY)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;WD) |
442 | 452 |
|
443 | 453 | :: ----- Reregister the BITS files and the Windows Update files ----- |
444 | 454 | call :print Reregister the BITS files and the Windows Update files. |
@@ -496,9 +506,11 @@ goto :eof |
496 | 506 |
|
497 | 507 | :: ----- Set the startup type as automatic ----- |
498 | 508 | call :print Resetting the services as automatics. |
499 | | -sc config wuauserv start= auto |
500 | | -sc config bits start= auto |
501 | | -sc config DcomLaunch start= auto |
| 509 | +sc.exe config wuauserv start= auto |
| 510 | +sc.exe config bits start= delayed-auto |
| 511 | +sc.exe config cryptsvc start= auto |
| 512 | +sc.exe config TrustedInstaller start= demand |
| 513 | +sc.exe config DcomLaunch start= auto |
502 | 514 |
|
503 | 515 | :: ----- Starting the Windows Update services ----- |
504 | 516 | call :print Starting the Windows Update services. |
@@ -889,6 +901,33 @@ goto :eof |
889 | 901 | :: /*************************************************************************************/ |
890 | 902 |
|
891 | 903 |
|
| 904 | +:: Forcing group policy update. |
| 905 | +:: void gpupdate(); |
| 906 | +:: /*************************************************************************************/ |
| 907 | +:gpupdate |
| 908 | +call :print Forcing group policy update. |
| 909 | + |
| 910 | +if %family% NEQ 5 ( |
| 911 | +gpupdate /force |
| 912 | +) else ( |
| 913 | +echo.Sorry, this option is not available on this Operative System. |
| 914 | +) |
| 915 | + |
| 916 | +if %errorlevel% EQU 0 ( |
| 917 | +echo. |
| 918 | +echo.The operation completed successfully. |
| 919 | +) else ( |
| 920 | +echo. |
| 921 | +echo.An error occurred during operation. |
| 922 | +) |
| 923 | + |
| 924 | +echo. |
| 925 | +echo.Press any key to continue . . . |
| 926 | +pause>nul |
| 927 | +goto :eof |
| 928 | +:: /*************************************************************************************/ |
| 929 | + |
| 930 | + |
892 | 931 | :: Search Updates. |
893 | 932 | :: void updates(); |
894 | 933 | :: /*************************************************************************************/ |
|
0 commit comments