pc71520 Posted November 9, 2015 Share Posted November 9, 2015 The Reset Windows Update Agent file is described HEREA Review by thewindowsclub.com can be found HEREDownloadhttps://gallery.technet.microsoft.com/scriptcenter/Reset-Windows-Update-Agent-d824badc/file/144348/1/ResetWUEng.cmd As shown above, the Script is the following::: ==================================================================================:: NAME : Reset Windows Update Components.:: DESCRIPTION : This script reset the Windows Update Components.:: AUTHOR : Manuel Gil.:: VERSION : 9.1.0:: ==================================================================================:: CMD Screen Settings.:: /************************************************************************************/echo offtitle Reset Windows Update Agent.mode con cols=78 lines=24color 17cls:: /************************************************************************************/:: Checking for Administrator elevation.:: /************************************************************************************/openfiles>nul 2>&1if %errorlevel%==0 goto Variablesclsverecho.Reset Windows Update Components Tool.echo.echo.Checking for Administrator elevation.echo.echo. You are not running as Administrator.echo. This batch cannot do it's job without elevation.echo.echo. You must run this tool as Administrator.echo.echo.Press any key to continue . . .pause>nulgoto Close:: /************************************************************************************/:: Set variables.:: /************************************************************************************/:Variablesfor /f "tokens=4-5 delims=[] " %%a in ('ver') do set version=%%a %%bfor %%a in (%version%) do set version=%%aif %version%==5.1.2600 (set name=Windows XPset allow=1) else if %version%==5.2.3790 (set name=Windows XP Professional x64 Editionset allow=1) else if %version%==6.0.6000 (set name=Windows Vistaset allow=1) else if %version%==6.0.6001 (set name=Windows Vista SP1set allow=1) else if %version%==6.0.6002 (set name=Windows Vista SP2set allow=1) else if %version%==6.1.7600 (set name=Windows 7set allow=1) else if %version%==6.1.7601 (set name=Windows 7 SP1set allow=1) else if %version%==6.2.9200 (set name=Windows 8set allow=1) else if %version%==6.3.9200 (set name=Windows 8.1set allow=1) else if %version%==6.3.9600 (set name=Windows 8.1 Update 1set allow=1) else if %version%==10.0.10240 (set name=Windows 10set allow=1) else if %version%==10.0.10565 (set name=Windows 10 Insiderset allow=1) else if %version%==10.0.10576 (set name=Windows 10 Insiderset allow=1) else (set name=Windowsset allow=0)clsverecho.Reset Windows Update Components Tool.echo.echo.Microsoft %name% detected . . .echo.if %allow%==0 echo.Sorry, this Operative System is not compatible whit this tool.if %allow%==1 goto Termsecho.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.echo.Press any key to continue . . .pause>nulgoto Close:: /************************************************************************************/:: Terms.:: /*************************************************************************************/:Termsclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. The methods inside this batch modify files and registry settings.echo. While they are tested and tend to work, I take no responsibility forecho. the use of this file.echo. This batch is provided without warranty. Any damage caused is yourecho. own responsibility.echo.echo. As well, batch files are almost always flagged by anti-virus, feel freeecho. to review the code if you're unsure.echo.choice /c YN /n /m "Do you want to continue with this process? (Y/N) "if %errorlevel%==1 goto Menuif %errorlevel%==2 goto Closeecho.echo.An unexpected error has occurred.echo.echo.Press any key to continue . . .pause>nulgoto Menu:: /*************************************************************************************/:: Menu of tool.:: /*************************************************************************************/:Menuclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. 1. Open the system protection.echo. 2. Scans all protected system files (Scannow).echo. 3. Scan the image to check for corruption (ScanHealth).echo. 4. Check the detected corruptions (CheckHealth).echo. 5. Repair the image (RestoreHealth).echo. 6. Clean up the superseded components (StartComponentCleanup).echo. 7. Reset Windows Update Components.echo. 8. Delete temporary files in Windows.echo. 9. Open the Internet Explorer options.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. Restart your PC.echo.echo. ?. Help. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (call :SystemProperties) else if "%option%"=="2" (call :ScanNow) else if "%option%"=="3" (call :ScanHealth) else if "%option%"=="4" (call :CheckHealth) else if "%option%"=="5" (call :RestoreHealth) else if "%option%"=="6" (call :StartComponent) else if "%option%"=="7" (call :Reset) else if "%option%"=="8" (call :Temp) else if "%option%"=="9" (call :IExplore) else if "%option%"=="10" (call :Regedit) else if "%option%"=="11" (call :Winsock) else if "%option%"=="12" (call :Search) else if "%option%"=="13" (call :Local) else if "%option%"=="14" (call :Online) else if "%option%"=="15" (call :Restart) else if "%option%"=="?" (call :Help_1) else if "%option%"=="0" (goto Close)goto Menu:: /*************************************************************************************/:: Print Top Text.:: /*************************************************************************************/:Printclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo.%*echo.goto :Eof:: /*************************************************************************************/:: Add Value in the Registry.:: /*************************************************************************************/:AddRegreg add "%~1" /v "%~2" /t "%~3" /d "%~4" /fgoto :Eof:: /*************************************************************************************/:: Change invalid values.:: /*************************************************************************************/:Regeditfor /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%.regif exist "%USERPROFILE%\Desktop\Backup%now%.reg" (echo.An unexpected error has occurred.echo.echo. Changes were not carried out in the registry.echo. Will try it later.echo.echo.Press any key to continue . . .pause>nulgoto :Eof) else (regedit /e "%USERPROFILE%\Desktop\Backup%now%.reg"):: ----- Checking backup -----call :Print Checking the backup copy.if not exist "%USERPROFILE%\Desktop\Backup%now%.reg" (echo.An unexpected error has occurred.echo.echo. Something went wrong.echo. You manually create a backup of the registry before continuing.echo.echo.Press any key to continue . . .pause>nul) else (echo.The operation completed successfully.echo.):: ----- Delete keys in the Registry -----call :Print Deleting values in the Registry.reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /freg delete "HKLM\COMPONENTS\PendingXmlIdentifier" /freg delete "HKLM\COMPONENTS\NextQueueEntryIndex" /freg delete "HKLM\COMPONENTS\AdvancedInstallersNeedResolving" /f:: ----- Add keys in the Registry -----call :Print Adding values in the Registry.set key=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdatecall :AddReg "%key%" "AllowOSUpgrade" "REG_DWORD" "1"reg add "HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup" /fset key=HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domainscall :AddReg "%key%\microsoft.com\update" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\update" "https" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\windowsupdate" "http" "REG_DWORD" "2"call :AddReg "%key%\update.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\update.microsoft.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.microsoft.com" "http" "REG_DWORD" "2call :AddReg "%key%\download.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com\download" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com\download" "https" "REG_DWORD" "2"call :AddReg "%key%\download.windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\download.windowsupdate.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windows.com\wustat" "http" "REG_DWORD" "2"call :AddReg "%key%\wustat.windows.com" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ntservicepack" "http" "REG_DWORD" "2"call :AddReg "%key%\ntservicepack.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ws" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ws" "https" "REG_DWORD" "2"call :AddReg "%key%\ws.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\ws.microsoft.com" "https" "REG_DWORD" "2":: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Run the reset Windows Update components.:: /*************************************************************************************/:Reset:: ----- Stopping the Windows Update services -----call :Print Stopping the Windows Update services.net stop bitscall :Print Stopping the Windows Update services.net stop wuauservcall :Print Stopping the Windows Update services.net stop appidsvccall :Print Stopping the Windows Update services.net stop cryptsvc:: ----- Checking the services status -----call :Print Checking the services status.sc query bits | findstr /I /C:"STOPPED"If not %errorlevel%==0 (echo.Failed to stop the BITS service.echo.echo.Press any key to continue . . .pause>nulgoto Close)call :Print Checking the services status.sc query wuauserv | findstr /I /C:"STOPPED"if not %errorlevel%==0 (echo.Failed to stop the Windows Update service.echo.echo.Press any key to continue . . .pause>nulgoto Close)call :Print Checking the services status.sc query appidsvc | findstr /I /C:"STOPPED"if not %errorlevel%==0 (sc query appidsvc | findstr /I /C:"OpenService FAILED 1060"if not %errorlevel%==0 (echo.Failed to stop the Application Identity service.echo.echo.Press any key to continue . . .pause>nulgoto Close))call :Print Checking the services status.sc query cryptsvc | findstr /I /C:"STOPPED"If not %errorlevel%==0 (echo.Failed to stop the Cryptographic Services service.echo.echo.Press any key to continue . . .pause>nulgoto Close):: ----- Delete the qmgr*.dat files -----call :Print Deleting the qmgr*.dat files.del /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat":: ----- Renaming the softare distribution folders backup copies -----call :Print Renaming the softare distribution folders backup copies.cd /d %SYSTEMROOT%if exist "%SYSTEMROOT%\winsxs\pending.xml.bak" del /s /q /f "%SYSTEMROOT%\winsxs\pending.xml.bak"if exist "%SYSTEMROOT%\SoftwareDistribution.bak" rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak"if exist "%SYSTEMROOT%\system32\Catroot2.bak" rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak"if exist "%SYSTEMROOT%\WindowsUpdate.log.bak" del /s /q /f "%SYSTEMROOT%\WindowsUpdate.log.bak"if exist "%SYSTEMROOT%\winsxs\pending.xml" (takeown /f "%SYSTEMROOT%\winsxs\pending.xml"attrib -r -s -h /s /d "%SYSTEMROOT%\winsxs\pending.xml"ren "%SYSTEMROOT%\winsxs\pending.xml" pending.xml.bak)if exist "%SYSTEMROOT%\SoftwareDistribution" (attrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution"ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak)if exist "%SYSTEMROOT%\system32\Catroot2" (attrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2"ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak)if exist "%SYSTEMROOT%\WindowsUpdate.log" (attrib -r -s -h /s /d "%SYSTEMROOT%\WindowsUpdate.log"ren "%SYSTEMROOT%\WindowsUpdate.log" WindowsUpdate.log.bak):: ----- 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):: ----- Reregister the BITS files and the Windows Update files -----call :Print Reregister the BITS files and the Windows Update files.cd /d %WINDIR%\system32regsvr32.exe /s atl.dllregsvr32.exe /s urlmon.dllregsvr32.exe /s mshtml.dllregsvr32.exe /s shdocvw.dllregsvr32.exe /s browseui.dllregsvr32.exe /s jscript.dllregsvr32.exe /s vbscript.dllregsvr32.exe /s scrrun.dllregsvr32.exe /s msxml.dllregsvr32.exe /s msxml3.dllregsvr32.exe /s msxml6.dllregsvr32.exe /s actxprxy.dllregsvr32.exe /s softpub.dllregsvr32.exe /s wintrust.dllregsvr32.exe /s dssenh.dllregsvr32.exe /s rsaenh.dllregsvr32.exe /s gpkcsp.dllregsvr32.exe /s sccbase.dllregsvr32.exe /s slbcsp.dllregsvr32.exe /s cryptdlg.dllregsvr32.exe /s oleaut32.dllregsvr32.exe /s ole32.dllregsvr32.exe /s shell32.dllregsvr32.exe /s initpki.dllregsvr32.exe /s wuapi.dllregsvr32.exe /s wuaueng.dllregsvr32.exe /s wuaueng1.dllregsvr32.exe /s wucltui.dllregsvr32.exe /s wups.dllregsvr32.exe /s wups2.dllregsvr32.exe /s wuweb.dllregsvr32.exe /s qmgr.dllregsvr32.exe /s qmgrprxy.dllregsvr32.exe /s wucltux.dllregsvr32.exe /s muweb.dllregsvr32.exe /s wuwebv.dll:: ----- Resetting Winsock -----call :Print Resetting Winsock.netsh winsock reset:: ----- Resetting WinHTTP Proxy -----call :Print Resetting WinHTTP Proxy.netsh winhttp reset proxy:: ----- Starting the Windows Update services -----call :Print Starting the Windows Update services.net start bitscall :Print Starting the Windows Update services.net start wuauservcall :Print Starting the Windows Update services.net start appidsvccall :Print Starting the Windows Update services.net start cryptsvc:: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Delete temporary files in Windows.:: /*************************************************************************************/:Tempcall :Print Deleting temporary files in Windows.cd /d %TEMP%del /s /f /q *.*echo.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Scans all protected system files.:: /*************************************************************************************/:ScanNowcall :Print Scans all protected system files.sfc /scannowecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Scan the image to check for corruption.:: /*************************************************************************************/:ScanHealthcall :Print Scanning the image to check for corruption.Dism.exe /Online /Cleanup-Image /ScanHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Check the detected corruptions.:: /*************************************************************************************/:CheckHealthcall :Print Checking the detected corruptions.Dism.exe /Online /Cleanup-Image /CheckHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Repair the image.:: /*************************************************************************************/:RestoreHealthcall :Print Repairing the image.Dism.exe /Online /Cleanup-Image /RestoreHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Clean up the superseded components .:: /*************************************************************************************/:StartComponentcall :Print Clean up the superseded components.Dism.exe /Online /Cleanup-Image /StartComponentCleanupecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Open system protection.:: /*************************************************************************************/:SystemPropertiescall :Print Opening the system protection.start systempropertiesprotectiongoto :Eof:: /*************************************************************************************/:: Open the Internet Explorer options.:: /*************************************************************************************/:IExplorecall :Print Opening the Internet Explorer options.start InetCpl.cplgoto :Eof:: /*************************************************************************************/:: Reset Winsock setting.:: /*************************************************************************************/:Winsock:: ----- Reset Winsock control -----call :Print Reset Winsock control.net localgroup Administradores localservice /addpause>nulfsutil resource setautoreset true C:\pause>nulnetsh int ip resetpause>nulnetsh winsock resetpause>nulnetsh advfirewall resetpause>nulipconfig /flushdnspause>nulnetsh winhttp reset proxypause>nul:: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Search Updates.:: /*************************************************************************************/:Searchcall :Print Looking for updates.echo.Take a few minutes.echo.echo.Press any key to continue . . .pause>nulif %version%==10.0.10240 (start ms-settings:windowsupdate) else if %version%==10.0.10565 (start ms-settings:windowsupdate) else if %version%==10.0.10576 (start ms-settings:windowsupdate) else (start wuapp.exe)call :Print Looking for updates.echo.Wait . . .echo.wuauclt /resetauthorization /detectnowgoto :Eof:: /*************************************************************************************/:: Explore other local solutions.:: /*************************************************************************************/:Localcall :Print Looking for solutions in this PC.start control.exe /name Microsoft.Troubleshootinggoto :Eof:: /*************************************************************************************/:: Explore other online solutions.:: /*************************************************************************************/:Onlinecall :Print Looking for solutions Online.start https://support.microsoft.com/en-us/gp/windows-update-issues/goto :Eof:: /*************************************************************************************/:: Reboot the system.:: /*************************************************************************************/:Restartclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. The system reboot in 60 seconds.echo. Please save all open documents.echo.start shutdown.exe /r /t 60 /c "The system reboot in 60 seconds. Please save all open documents."echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_1clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. Name:echo. Reset Windows Update Components.echo.echo. Description:echo. This script reset the Windows Update Components.echo.echo. Purpose:echo. This tools has been developed for use as a support system repairecho. options.echo.echo. Usage:echo. First, it's advisable to disable the antivirus temporarily, as this mayecho. interfere corrections made by the tool.echo.echo. Verify that the time and date of your system are up to date.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto :Eof) else if "%option%"=="2" (goto Help_2) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_1:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_2clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. Create a restore point into the system properties protection.echo.echo. It's advisable to repair the system before reset the Windows Updateecho. Components.echo.echo. For repairing the system follow these options (available inecho. Windows 8, Windows 8.1 and Windows 10):echo.echo. Each step will take several minutes.echo.echo. a. Scans all protected system files (Scannow).echo. b. Scan the image to check for corruption (ScanHealth).echo. c. Check the detected corruptions (CheckHealth).echo. d. Repair the image (RestoreHealth).echo. e. Clean up the superseded components (StartComponentCleanup).echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_1) else if "%option%"=="2" (goto Help_3) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_2:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_3clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. It's advisable to restart your computer after each step.echo.echo. For reset the Windows Update Components follow these options:echo.echo. a. Reset Windows Update Components.echo. b. Delete temporary files in Windows.echo. c. Reset Internet Explorer options.echo. d. Restart your PC.echo.echo. For fix connection issues follow these options:echo.echo. a. Change invalid values in the Registry.echo. b. Reset the Winsock settings.echo.echo. It's advisable to restart your computer after each step.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_2) else if "%option%"=="2" (goto Help_4) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_3:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_4clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. For fix others issues follow these options.echo.echo. a. Change invalid values in the Registry.echo. b. Restart your PC.echo.echo. Author:echo. Manuel Gil.echo.echo. Version:echo. 9.1.0echo.echo. Note:echo. Translated from the original version in spanish.echo.echo.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_3) else if "%option%"=="2" (goto :Eof) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_4:: /*************************************************************************************/:: End tool.:: /*************************************************************************************/:Closeexit:: /*************************************************************************************/The above Script offers Fifteen (15) Options.PLEASE, can someone Add the following Two (2) Optionsto the above Fifteen (15) onesso that the Merged .bat file offers Seventeen (17) Options?Reset Reliability Monitorreg add "HKLM\SOFTWARE\Microsoft\Reliability Analysis\WMI" /v WMIEnable /T REG_DWORD /D 1 /Fdel /f /S /Q /A "%ProgramData%\Microsoft\RAC\PublishedData\*"del /f /S /Q /A "%ProgramData%\Microsoft\RAC\StateData\*"@echo offFOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%VIF (%adminTest%)==(Access) goto noAdminfor /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")echo.echo goto theEnd:do_clearecho clearing %1wevtutil.exe cl %1goto :eof:noAdminexitNotification Area Cleaner@echo offtaskkill /im explorer.exe /freg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /freg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /fstart "Shell Restarter" /d "%systemroot%" /i /normal explorer.exeshutdown -r -t 0I hope distinguished Members offer their skills as the respective File is valuable for System Maintenance. Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 9, 2015 Share Posted November 9, 2015 seem easy to do ill post if i have time Link to comment Share on other sites More sharing options...
Cerberus Posted November 9, 2015 Share Posted November 9, 2015 Simple way would be to call the needed sections from within one cmd file. Easy to setup. ;) Link to comment Share on other sites More sharing options...
pc71520 Posted November 10, 2015 Author Share Posted November 10, 2015 seem easy to do ill post if i have timeI hope you find some time...I'm grateful... :wub: Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 11, 2015 Share Posted November 11, 2015 just looking at the Script its longer then i was thinking may need help with this i hope some good people will help Link to comment Share on other sites More sharing options...
pc71520 Posted November 11, 2015 Author Share Posted November 11, 2015 just looking at the Script its longer then i was thinking may need help with this i hope some good people will help The issue is how to add two (2) more optionsto the fifteen (15) ones that already exist. Link to comment Share on other sites More sharing options...
AR_Alex Posted November 11, 2015 Share Posted November 11, 2015 Easy to do I'll have it done by tonight once I get out of work. Link to comment Share on other sites More sharing options...
AR_Alex Posted November 12, 2015 Share Posted November 12, 2015 Here you go I didn't test it out but it should work correctly.Added options 16 (Reset Reliability Monitor) & 17 (Notification Area Cleaner).It's easy to do look carefully how I added the stuff without changing the format. It's literally copy and paste...:: ==================================================================================:: NAME : Reset Windows Update Components.:: DESCRIPTION : This script reset the Windows Update Components.:: AUTHOR : Manuel Gil.:: VERSION : 9.1.0:: ==================================================================================:: CMD Screen Settings.:: /************************************************************************************/echo offtitle Reset Windows Update Agent.mode con cols=78 lines=24color 17cls:: /************************************************************************************/:: Checking for Administrator elevation.:: /************************************************************************************/openfiles>nul 2>&1if %errorlevel%==0 goto Variablesclsverecho.Reset Windows Update Components Tool.echo.echo.Checking for Administrator elevation.echo.echo. You are not running as Administrator.echo. This batch cannot do it's job without elevation.echo.echo. You must run this tool as Administrator.echo.echo.Press any key to continue . . .pause>nulgoto Close:: /************************************************************************************/:: Set variables.:: /************************************************************************************/:Variablesfor /f "tokens=4-5 delims=[] " %%a in ('ver') do set version=%%a %%bfor %%a in (%version%) do set version=%%aif %version%==5.1.2600 (set name=Windows XPset allow=1) else if %version%==5.2.3790 (set name=Windows XP Professional x64 Editionset allow=1) else if %version%==6.0.6000 (set name=Windows Vistaset allow=1) else if %version%==6.0.6001 (set name=Windows Vista SP1set allow=1) else if %version%==6.0.6002 (set name=Windows Vista SP2set allow=1) else if %version%==6.1.7600 (set name=Windows 7set allow=1) else if %version%==6.1.7601 (set name=Windows 7 SP1set allow=1) else if %version%==6.2.9200 (set name=Windows 8set allow=1) else if %version%==6.3.9200 (set name=Windows 8.1set allow=1) else if %version%==6.3.9600 (set name=Windows 8.1 Update 1set allow=1) else if %version%==10.0.10240 (set name=Windows 10set allow=1) else if %version%==10.0.10565 (set name=Windows 10 Insiderset allow=1) else if %version%==10.0.10576 (set name=Windows 10 Insiderset allow=1) else (set name=Windowsset allow=0)clsverecho.Reset Windows Update Components Tool.echo.echo.Microsoft %name% detected . . .echo.if %allow%==0 echo.Sorry, this Operative System is not compatible whit this tool.if %allow%==1 goto Termsecho.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.echo.Press any key to continue . . .pause>nulgoto Close:: /************************************************************************************/:: Terms.:: /*************************************************************************************/:Termsclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. The methods inside this batch modify files and registry settings.echo. While they are tested and tend to work, I take no responsibility forecho. the use of this file.echo. This batch is provided without warranty. Any damage caused is yourecho. own responsibility.echo.echo. As well, batch files are almost always flagged by anti-virus, feel freeecho. to review the code if you're unsure.echo.choice /c YN /n /m "Do you want to continue with this process? (Y/N) "if %errorlevel%==1 goto Menuif %errorlevel%==2 goto Closeecho.echo.An unexpected error has occurred.echo.echo.Press any key to continue . . .pause>nulgoto Menu:: /*************************************************************************************/:: Menu of tool.:: /*************************************************************************************/:Menuclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. 1. Open the system protection.echo. 2. Scans all protected system files (Scannow).echo. 3. Scan the image to check for corruption (ScanHealth).echo. 4. Check the detected corruptions (CheckHealth).echo. 5. Repair the image (RestoreHealth).echo. 6. Clean up the superseded components (StartComponentCleanup).echo. 7. Reset Windows Update Components.echo. 8. Delete temporary files in Windows.echo. 9. Open the Internet Explorer options.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. Restart your PC.echo. 16. Reset Reliability Monitorecho. 17. Notification Area Cleanerecho.echo. ?. Help. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (call :SystemProperties) else if "%option%"=="2" (call :ScanNow) else if "%option%"=="3" (call :ScanHealth) else if "%option%"=="4" (call :CheckHealth) else if "%option%"=="5" (call :RestoreHealth) else if "%option%"=="6" (call :StartComponent) else if "%option%"=="7" (call :Reset) else if "%option%"=="8" (call :Temp) else if "%option%"=="9" (call :IExplore) else if "%option%"=="10" (call :Regedit) else if "%option%"=="11" (call :Winsock) else if "%option%"=="12" (call :Search) else if "%option%"=="13" (call :Local) else if "%option%"=="14" (call :Online) else if "%option%"=="15" (call :Restart) else if "%option%"=="16" (call :rrm) else if "%option%"=="17" (call :nac) else if "%option%"=="?" (call :Help_1) else if "%option%"=="0" (goto Close)goto Menu:: /*************************************************************************************/:: Print Top Text.:: /*************************************************************************************/:Printclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo.%*echo.goto :Eof:: /*************************************************************************************/:: Add Value in the Registry.:: /*************************************************************************************/:AddRegreg add "%~1" /v "%~2" /t "%~3" /d "%~4" /fgoto :Eof:: /*************************************************************************************/:: Change invalid values.:: /*************************************************************************************/:Regeditfor /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%.regif exist "%USERPROFILE%\Desktop\Backup%now%.reg" (echo.An unexpected error has occurred.echo.echo. Changes were not carried out in the registry.echo. Will try it later.echo.echo.Press any key to continue . . .pause>nulgoto :Eof) else (regedit /e "%USERPROFILE%\Desktop\Backup%now%.reg"):: ----- Checking backup -----call :Print Checking the backup copy.if not exist "%USERPROFILE%\Desktop\Backup%now%.reg" (echo.An unexpected error has occurred.echo.echo. Something went wrong.echo. You manually create a backup of the registry before continuing.echo.echo.Press any key to continue . . .pause>nul) else (echo.The operation completed successfully.echo.):: ----- Delete keys in the Registry -----call :Print Deleting values in the Registry.reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /freg delete "HKLM\COMPONENTS\PendingXmlIdentifier" /freg delete "HKLM\COMPONENTS\NextQueueEntryIndex" /freg delete "HKLM\COMPONENTS\AdvancedInstallersNeedResolving" /f:: ----- Add keys in the Registry -----call :Print Adding values in the Registry.set key=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folderscall :AddReg "%key%" "AppData" "REG_EXPAND_SZ" "%USERPROFILE%\AppData\Roaming"set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdatecall :AddReg "%key%" "AllowOSUpgrade" "REG_DWORD" "1"reg add "HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup" /fset key=HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domainscall :AddReg "%key%\microsoft.com\update" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\update" "https" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\windowsupdate" "http" "REG_DWORD" "2"call :AddReg "%key%\update.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\update.microsoft.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.microsoft.com" "http" "REG_DWORD" "2call :AddReg "%key%\download.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com\download" "http" "REG_DWORD" "2"call :AddReg "%key%\windowsupdate.com\download" "https" "REG_DWORD" "2"call :AddReg "%key%\download.windowsupdate.com" "http" "REG_DWORD" "2"call :AddReg "%key%\download.windowsupdate.com" "https" "REG_DWORD" "2"call :AddReg "%key%\windows.com\wustat" "http" "REG_DWORD" "2"call :AddReg "%key%\wustat.windows.com" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ntservicepack" "http" "REG_DWORD" "2"call :AddReg "%key%\ntservicepack.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ws" "http" "REG_DWORD" "2"call :AddReg "%key%\microsoft.com\ws" "https" "REG_DWORD" "2"call :AddReg "%key%\ws.microsoft.com" "http" "REG_DWORD" "2"call :AddReg "%key%\ws.microsoft.com" "https" "REG_DWORD" "2":: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Run the reset Windows Update components.:: /*************************************************************************************/:Reset:: ----- Stopping the Windows Update services -----call :Print Stopping the Windows Update services.net stop bitscall :Print Stopping the Windows Update services.net stop wuauservcall :Print Stopping the Windows Update services.net stop appidsvccall :Print Stopping the Windows Update services.net stop cryptsvc:: ----- Checking the services status -----call :Print Checking the services status.sc query bits | findstr /I /C:"STOPPED"If not %errorlevel%==0 (echo.Failed to stop the BITS service.echo.echo.Press any key to continue . . .pause>nulgoto Close)call :Print Checking the services status.sc query wuauserv | findstr /I /C:"STOPPED"if not %errorlevel%==0 (echo.Failed to stop the Windows Update service.echo.echo.Press any key to continue . . .pause>nulgoto Close)call :Print Checking the services status.sc query appidsvc | findstr /I /C:"STOPPED"if not %errorlevel%==0 (sc query appidsvc | findstr /I /C:"OpenService FAILED 1060"if not %errorlevel%==0 (echo.Failed to stop the Application Identity service.echo.echo.Press any key to continue . . .pause>nulgoto Close))call :Print Checking the services status.sc query cryptsvc | findstr /I /C:"STOPPED"If not %errorlevel%==0 (echo.Failed to stop the Cryptographic Services service.echo.echo.Press any key to continue . . .pause>nulgoto Close):: ----- Delete the qmgr*.dat files -----call :Print Deleting the qmgr*.dat files.del /s /q /f "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat":: ----- Renaming the softare distribution folders backup copies -----call :Print Renaming the softare distribution folders backup copies.cd /d %SYSTEMROOT%if exist "%SYSTEMROOT%\winsxs\pending.xml.bak" del /s /q /f "%SYSTEMROOT%\winsxs\pending.xml.bak"if exist "%SYSTEMROOT%\SoftwareDistribution.bak" rmdir /s /q "%SYSTEMROOT%\SoftwareDistribution.bak"if exist "%SYSTEMROOT%\system32\Catroot2.bak" rmdir /s /q "%SYSTEMROOT%\system32\Catroot2.bak"if exist "%SYSTEMROOT%\WindowsUpdate.log.bak" del /s /q /f "%SYSTEMROOT%\WindowsUpdate.log.bak"if exist "%SYSTEMROOT%\winsxs\pending.xml" (takeown /f "%SYSTEMROOT%\winsxs\pending.xml"attrib -r -s -h /s /d "%SYSTEMROOT%\winsxs\pending.xml"ren "%SYSTEMROOT%\winsxs\pending.xml" pending.xml.bak)if exist "%SYSTEMROOT%\SoftwareDistribution" (attrib -r -s -h /s /d "%SYSTEMROOT%\SoftwareDistribution"ren "%SYSTEMROOT%\SoftwareDistribution" SoftwareDistribution.bak)if exist "%SYSTEMROOT%\system32\Catroot2" (attrib -r -s -h /s /d "%SYSTEMROOT%\system32\Catroot2"ren "%SYSTEMROOT%\system32\Catroot2" Catroot2.bak)if exist "%SYSTEMROOT%\WindowsUpdate.log" (attrib -r -s -h /s /d "%SYSTEMROOT%\WindowsUpdate.log"ren "%SYSTEMROOT%\WindowsUpdate.log" WindowsUpdate.log.bak):: ----- 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):: ----- Reregister the BITS files and the Windows Update files -----call :Print Reregister the BITS files and the Windows Update files.cd /d %WINDIR%\system32regsvr32.exe /s atl.dllregsvr32.exe /s urlmon.dllregsvr32.exe /s mshtml.dllregsvr32.exe /s shdocvw.dllregsvr32.exe /s browseui.dllregsvr32.exe /s jscript.dllregsvr32.exe /s vbscript.dllregsvr32.exe /s scrrun.dllregsvr32.exe /s msxml.dllregsvr32.exe /s msxml3.dllregsvr32.exe /s msxml6.dllregsvr32.exe /s actxprxy.dllregsvr32.exe /s softpub.dllregsvr32.exe /s wintrust.dllregsvr32.exe /s dssenh.dllregsvr32.exe /s rsaenh.dllregsvr32.exe /s gpkcsp.dllregsvr32.exe /s sccbase.dllregsvr32.exe /s slbcsp.dllregsvr32.exe /s cryptdlg.dllregsvr32.exe /s oleaut32.dllregsvr32.exe /s ole32.dllregsvr32.exe /s shell32.dllregsvr32.exe /s initpki.dllregsvr32.exe /s wuapi.dllregsvr32.exe /s wuaueng.dllregsvr32.exe /s wuaueng1.dllregsvr32.exe /s wucltui.dllregsvr32.exe /s wups.dllregsvr32.exe /s wups2.dllregsvr32.exe /s wuweb.dllregsvr32.exe /s qmgr.dllregsvr32.exe /s qmgrprxy.dllregsvr32.exe /s wucltux.dllregsvr32.exe /s muweb.dllregsvr32.exe /s wuwebv.dll:: ----- Resetting Winsock -----call :Print Resetting Winsock.netsh winsock reset:: ----- Resetting WinHTTP Proxy -----call :Print Resetting WinHTTP Proxy.netsh winhttp reset proxy:: ----- Starting the Windows Update services -----call :Print Starting the Windows Update services.net start bitscall :Print Starting the Windows Update services.net start wuauservcall :Print Starting the Windows Update services.net start appidsvccall :Print Starting the Windows Update services.net start cryptsvc:: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:rrmreg add "HKLM\SOFTWARE\Microsoft\Reliability Analysis\WMI" /v WMIEnable /T REG_DWORD /D 1 /Fdel /f /S /Q /A "%ProgramData%\Microsoft\RAC\PublishedData\*"del /f /S /Q /A "%ProgramData%\Microsoft\RAC\StateData\*"FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%VIF (%adminTest%)==(Access) goto noAdminfor /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")echo.exit:do_clearecho clearing %1wevtutil.exe cl %1exit:nactaskkill /im explorer.exe /freg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v IconStreams /freg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream /fstart "Shell Restarter" /d "%systemroot%" /i /normal explorer.exeshutdown -r -t 0exit:: Delete temporary files in Windows.:: /*************************************************************************************/:Tempcall :Print Deleting temporary files in Windows.cd /d %TEMP%del /s /f /q *.*echo.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Scans all protected system files.:: /*************************************************************************************/:ScanNowcall :Print Scans all protected system files.sfc /scannowecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Scan the image to check for corruption.:: /*************************************************************************************/:ScanHealthcall :Print Scanning the image to check for corruption.Dism.exe /Online /Cleanup-Image /ScanHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Check the detected corruptions.:: /*************************************************************************************/:CheckHealthcall :Print Checking the detected corruptions.Dism.exe /Online /Cleanup-Image /CheckHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Repair the image.:: /*************************************************************************************/:RestoreHealthcall :Print Repairing the image.Dism.exe /Online /Cleanup-Image /RestoreHealthecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Clean up the superseded components .:: /*************************************************************************************/:StartComponentcall :Print Clean up the superseded components.Dism.exe /Online /Cleanup-Image /StartComponentCleanupecho.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Open system protection.:: /*************************************************************************************/:SystemPropertiescall :Print Opening the system protection.start systempropertiesprotectiongoto :Eof:: /*************************************************************************************/:: Open the Internet Explorer options.:: /*************************************************************************************/:IExplorecall :Print Opening the Internet Explorer options.start InetCpl.cplgoto :Eof:: /*************************************************************************************/:: Reset Winsock setting.:: /*************************************************************************************/:Winsock:: ----- Reset Winsock control -----call :Print Reset Winsock control.net localgroup Administradores localservice /addpause>nulfsutil resource setautoreset true C:\pause>nulnetsh int ip resetpause>nulnetsh winsock resetpause>nulnetsh advfirewall resetpause>nulipconfig /flushdnspause>nulnetsh winhttp reset proxypause>nul:: ----- End process -----call :Print The operation completed successfully.echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Search Updates.:: /*************************************************************************************/:Searchcall :Print Looking for updates.echo.Take a few minutes.echo.echo.Press any key to continue . . .pause>nulif %version%==10.0.10240 (start ms-settings:windowsupdate) else if %version%==10.0.10565 (start ms-settings:windowsupdate) else if %version%==10.0.10576 (start ms-settings:windowsupdate) else (start wuapp.exe)call :Print Looking for updates.echo.Wait . . .echo.wuauclt /resetauthorization /detectnowgoto :Eof:: /*************************************************************************************/:: Explore other local solutions.:: /*************************************************************************************/:Localcall :Print Looking for solutions in this PC.start control.exe /name Microsoft.Troubleshootinggoto :Eof:: /*************************************************************************************/:: Explore other online solutions.:: /*************************************************************************************/:Onlinecall :Print Looking for solutions Online.start https://support.micr...-update-issues/goto :Eof:: /*************************************************************************************/:: Reboot the system.:: /*************************************************************************************/:Restartclsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. The system reboot in 60 seconds.echo. Please save all open documents.echo.start shutdown.exe /r /t 60 /c "The system reboot in 60 seconds. Please save all open documents."echo.Press any key to continue . . .pause>nulgoto :Eof:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_1clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. Name:echo. Reset Windows Update Components.echo.echo. Description:echo. This script reset the Windows Update Components.echo.echo. Purpose:echo. This tools has been developed for use as a support system repairecho. options.echo.echo. Usage:echo. First, it's advisable to disable the antivirus temporarily, as this mayecho. interfere corrections made by the tool.echo.echo. Verify that the time and date of your system are up to date.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto :Eof) else if "%option%"=="2" (goto Help_2) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_1:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_2clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. Create a restore point into the system properties protection.echo.echo. It's advisable to repair the system before reset the Windows Updateecho. Components.echo.echo. For repairing the system follow these options (available inecho. Windows 8, Windows 8.1 and Windows 10):echo.echo. Each step will take several minutes.echo.echo. a. Scans all protected system files (Scannow).echo. b. Scan the image to check for corruption (ScanHealth).echo. c. Check the detected corruptions (CheckHealth).echo. d. Repair the image (RestoreHealth).echo. e. Clean up the superseded components (StartComponentCleanup).echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_1) else if "%option%"=="2" (goto Help_3) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_2:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_3clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. It's advisable to restart your computer after each step.echo.echo. For reset the Windows Update Components follow these options:echo.echo. a. Reset Windows Update Components.echo. b. Delete temporary files in Windows.echo. c. Reset Internet Explorer options.echo. d. Restart your PC.echo.echo. For fix connection issues follow these options:echo.echo. a. Change invalid values in the Registry.echo. b. Reset the Winsock settings.echo.echo. It's advisable to restart your computer after each step.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_2) else if "%option%"=="2" (goto Help_4) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_3:: /*************************************************************************************/:: Help Menu.:: /*************************************************************************************/:Help_4clsecho.echo.Microsoft %name% [Version: %version%]echo.Reset Windows Update Components Tool.echo.echo. For fix others issues follow these options.echo.echo. a. Change invalid values in the Registry.echo. b. Restart your PC.echo.echo. Author:echo. Manuel Gil.echo.echo. Version:echo. 9.1.0echo.echo. Note:echo. Translated from the original version in spanish.echo.echo.echo.echo. 1. Back. 2. Next. 3. Menu. 0. Close.echo.set /p option= Select an option:if "%option%"=="1" (goto Help_3) else if "%option%"=="2" (goto :Eof) else if "%option%"=="3" (goto :Eof) else if "%option%"=="0" (goto Close)goto Help_4:: /*************************************************************************************/:: End tool.:: /*************************************************************************************/:Closeexit:: /*************************************************************************************/ Link to comment Share on other sites More sharing options...
dcs18 Posted November 12, 2015 Share Posted November 12, 2015 @dcs18Can you, PLEASE, offer your Experience & Skills, here?[i'm sorry but I couldn't PM you.]pc71520,Check out post # 3996. Link to comment Share on other sites More sharing options...
pc71520 Posted November 12, 2015 Author Share Posted November 12, 2015 @AR_Alex@dcs18My secere gratitude to you! :wub: I hope this Script help NSANErs... Link to comment Share on other sites More sharing options...
Jordan Posted November 12, 2015 Share Posted November 12, 2015 @AR_Alex@dcs18My secere gratitude to you! :wub: I hope this Script help NSANErs...i just added an entry for the latest windows 10 build 10586http://www.mirrorcreator.com/files/1WWKEAWX/ResetWUeng.rar_linksThanks to original author. Link to comment Share on other sites More sharing options...
pc71520 Posted November 12, 2015 Author Share Posted November 12, 2015 @jordan4xCan you comment on THIS, please? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.