Reset Windows Update in Windows 10  

Page 29 of 49 FirstFirst ... 19272829303139 ... LastLast

  1. Posts : 2,168
    Windows 10 Pro for the Bro
       #280

    Brink said:
    You could use the SFC command below to verify and fix modified/corrupted system files.

    Run SFC Command in Windows 10
    Okay cool. I'll keep that info in my important Windows Repair text file.
      My Computer


  2. Posts : 127
    Windows 10
       #281

    I ran your bat file and it didn't work. here's a screen shot. any other suggestions?Reset Windows Update in Windows 10-error.png
      My Computers


  3. Posts : 64,490
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #282

    timlab55 said:
    I ran your bat file and it didn't work. here's a screen shot. any other suggestions?

    Hello Tim,

    If you haven't already, you could try to manually download and install the update.

    KB4530684 CU Win 10 v1903 build 18362.535 and v1909 build 18363.535
      My Computers


  4. Posts : 127
    Windows 10
       #283

    Failed!
      My Computers


  5. Posts : 64,490
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #284

    timlab55 said:
    Failed!
    In that case, you could try a repair install, then try to update afterwards.

    Repair Install Windows 10 with an In-place Upgrade
      My Computers


  6. Posts : 7,568
    Windows 10 Home 20H2
       #285

    There are occasions when members omit to select "Run as administrator".
    The latest one is here: Can't install or hide update
    So, I suggest adding the following lines atop the script.

    Code:
    Set "Variable=0" & if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
    
    fsutil dirty query %systemdrive%  >nul 2>&1 && goto :(Privileges_got)
    
    If "%1"=="%Variable%" (echo. &echo. Please right-click on the file and select &echo. "Run as administrator". &echo. Press any key to exit. &pause>nul 2>&1& exit)
    
    cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%Variable%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs" & exit
    
    :(Privileges_got)
    It will automatically get administrative privileges in a batch script.
      My Computer


  7. Posts : 837
    Windows 10 Pro 21H2
       #286

    Matthew Wai said:
    There are occasions when members omit to select "Run as administrator".
    The latest one is here: Can't install or hide update
    So, I suggest adding the following line atop the script.

    (Net session >nul 2>&1)||(PowerShell start -verb runas '%~0' &exit /b)

    It will automatically get administrative privileges in a CMD script.
    Yea, well that was me, so why didn't you tell me this before?
      My Computer


  8. Posts : 64,490
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #287

    Matthew Wai said:
    There are occasions when members omit to select "Run as administrator".
    The latest one is here: Can't install or hide update
    So, I suggest adding the following lines atop the script.

    Code:
    Set "Variable=0" & if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
    
    fsutil dirty query %systemdrive%  >nul 2>&1 && goto :(Privileges_got)
    
    If "%1"=="%Variable%" (echo. &echo. Please right-click on the file and select &echo. "Run as administrator". &echo. Press any key to exit. &pause>nul 2>&1& exit)
    
    cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%Variable%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs" & exit
    
    :(Privileges_got)
    It will automatically get administrative privileges in a batch script.
    Thank you Matthew.

    I have updated the .bat file to include this to prompt for elevation, and added to prompt to restart the computer at the end as well.
      My Computers


  9. Posts : 3
    win10
       #288

    Once again Brink to the rescue. 👍 .bat worked for me. stay safe.
      My Computer


  10. Posts : 64,490
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #289

    KOREA7 said:
    Once again Brink to the rescue.  .bat worked for me. stay safe.
    You're most welcome. I'm glad it could help.

    Please stay safe and healthy out there.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:59.
Find Us




Windows 10 Forums