Tuesday, May 11, 2021

Fix Windows Update Script

Paste into notepad and save as fixupdate.bat
Should work. I've done it manually before but not with this script.

@ECHO OFF
echo Simple Script to Reset / Clear Windows Update
 echo.
PAUSE
echo.
attrib -h -r -s %windir%system32catroot2
attrib -h -r -s %windir%system32catroot2*.*
net stop wuauserv
net stop CryptSvc
net stop BITS
ren %windir%system32catroot2 catroot2.old
ren %windir%SoftwareDistribution sold.old
ren "%ALLUSERSPROFILE%application dataMicrosoftNetworkdownloader" downloader.old
net Start BITS
net start CryptSvc
net start wuauserv
echo.
echo Task completed successfully...
echo.
PAUSE 

I have an early Yoga running 1903 and it refuses to feature update.
I thought it was the Conextant Audio drive but looks like it was a BIOS update needed.
2021-05-15 I let Lenovo update the bios. Update still stopped at 61%. But this time running Update Assistant looks like it is going to make it.
(Of course Assistant detected standard update running so I hade to net stop wuauserv and it was happy.

Do I really care if I have 2004? I would have been happy to stop it at 1909 but I does bug me not to have things works correctly.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Pin Not Available

Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...