söndag 26 mars 2023

Reseta Windows update

Om drivrutiner inte går att uppdatera pga att datorn har en nyare version installerad gör såhär för att nollställa Windows update:

Kör cmd som administratör


net stop wuauserv

rd /s /q %systemroot%\SoftwareDistribution

net start wuauserv


net stop bits

net stop wuauserv

net stop cryptsvc   


Ren %Systemroot%\SoftwareDistribution\DataStore DataStore.bak

Ren %Systemroot%\SoftwareDistribution\Download Download.bak

Ren %Systemroot%\System32\catroot2 catroot2.bak


netsh winsock reset


net start bits

net start wuauserv   

net start cryptsvc 


Starta om datorn

Kör Windows update igen


Om det inte hjälper testa detta:

Start - kör

Skriv Services.msc

Leta upp Windows installer och välj Start


Kör Windows update igen


Alt gör enl nedan:


1-Hold the Windows Key and Press R. Type services.msc and Click OK. 


2-In the Services window, find the Windows Update or Automatic Updates, depending on your version of Windows, right-click it, and select Stop from the menu. 


3-Using the File Explorer navigate to the partition or drive where Windows is installed. Usually this will be the C: 


4-Once inside the drive, open the Windows folder, and the SoftwareDistribution folder inside. 


5-Find and open the DataStore folder, and delete everything inside. If you get a UAC prompt, provide confirmation. 


6-Go back up to the SoftwareDistribution folder, open the Download folder and delete everything here as well. Provide confirmation if you get a UAC prompt, and close the window. 


6-Use steps 1 and 2 to get to the Services window again. 


8-Find Windows Update or Automatic Updates, right-click it and select Start from the context menu. 


9-Now test, and it should update fine.