Jump to content

Recommended Posts

Posted

Hi All,

 

I have an issue with a couple of our VM's.

 

for some reason they won't update and i get an error message when i try to run troubleshooter.

 

Anyone know of a fix for this?

 

Cheers! :)

 

error 1.JPG

error.JPG

Posted
Hi try going into the update history and find the kb's that have failed then download them from the windows catalogue to the local hard drive then install them from there. Richard
  • Thanks 1
Posted

Are you using a proxy ?

 

If so use this command in cmd to import the proxy so win update can see it , this fixed it for us

 

Netsh winhttp import proxy source =ie

 

Then restart the update service

Posted

We used to get this in Windows 7 if WMI was having issues which had a knock on effect. Found this script which admittedly is more of a lump hammer but it fixed it after a restart. Should work ok for Windows 10. Or you could just use the last bit to kill and restart WSUS

 

Echo Rebuilding WMI... Please wait. > c:\SW_Setup.lognet stop sharedaccess >> c:\SW_Setup.lognet stop winmgmt /y >> c:\SW_Setup.logcd %systemroot%\system32\wbem >> c:\SW_Setup.logdel /Q Repository >> c:\SW_Setup.logc:cd %systemroot%\system32\wbem >> c:\SW_Setup.logrd /S /Q repository >> c:\SW_Setup.logregsvr32 /s %systemroot%\system32\scecli.dll >> c:\SW_Setup.logregsvr32 /s %systemroot%\system32\userenv.dll >> c:\SW_Setup.logmofcomp cimwin32.mof >> c:\SW_Setup.logmofcomp cimwin32.mfl >> c:\SW_Setup.logmofcomp rsop.mof >> c:\SW_Setup.logmofcomp rsop.mfl >> c:\SW_Setup.logfor /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%sfor /f %%s in ('dir /b *.mof') do mofcomp %%s for /f %%s in ('dir /b *.mfl') do mofcomp %%s mofcomp exwmi.mof >> c:\SW_Setup.logmofcomp -n:root\cimv2\applications\exchange wbemcons.mof >> c:\SW_Setup.logmofcomp -n:root\cimv2\applications\exchange smtpcons.mof >> c:\SW_Setup.logmofcomp exmgmt.mof >> c:\SW_Setup.lognet stop winmgmt >> c:\SW_Setup.lognet start winmgmt >> c:\SW_Setup.loggpupdate /force >> c:\SW_Setup.logEcho Setting up fireall... Please wait. >> c:\SW_Setup.lognetsh firewall set service remoteadmin enable >> c:\SW_Setup.logEcho Enable Ping >> c:\SW_Setup.lognetsh firewall set icmpsetting 8 >> c:\SW_Setup.logEcho Dcom setup >> c:\SW_Setup.logreg add HKLM\SOFTWARE\Microsoft\Ole /v LegacyAuthenticationLevel /t REG_DWORD /d "2" /f >> c:\SW_Setup.logreg add HKLM\SOFTWARE\Microsoft\Ole /v LegacyImpersonationLevel /t REG_DWORD /d "3" /f >> c:\SW_Setup.log Echo Windows7 / Vista Stuff... Please ignore if you are not using. >> c:\SW_Setup.logEcho Disable UAC >> c:\SW_Setup.log%windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f >> c:\SW_Setup.logEcho Win7 Firewall setup >> c:\SW_Setup.lognetsh advfirewall set currentprofile settings remotemanagement enable >> c:\SW_Setup.lognetsh advfirewall firewall set rule group="windows management instrumentation (WMI)" new enable=Yes  >> c:\SW_Setup.lognetsh advfirewall firewall set rule group="remote administration" new enable=yes >> c:\SW_Setup.logEcho Please check the log c:\SW_Setup.log for any issues. >> c:\SW_Setup.logEcho If using Windows7 or Vista please reboot. >> c:\SW_Setup.logEcho Check winmgmt is started, there were problems with it not starting on win7 >> c:\SW_Setup.lognet start winmgmt >> c:\SW_Setup.logecho Resetting Automatic Updates >> c:\SW_Setup.lognet stop bits net stop "Automatic Updates"REM Automatic Updates for those German Usersnet stop wuauservdel /f /s /q %windir%\SoftwareDistribution\*.*echo.echo.net start bitsnet start "Automatic Updates"net start wuauservecho Forcing AU detection and resetting authorization tokens... >> c:\SW_Setup.logwuauclt.exe /resetauthorization /detectnow

Posted (edited)

Normally when this happens to me I rename the download folder in software distribution to download.old and then manually download the latest cumulative update from the catalogue and install it manually. If you are having issues renaming the download folder and unable to stop the windows update service then temporarily set the windows update service to disabled and reboot the server. Once the server has rebooted, try renaming the download folder in the software distro folder and then enable the windows update service and set it to automatic and start it. Once that is all done, run the cumulative update manually. It will take ages BTW.

 

If you try to stop the windows update service and it hangs and attempt a reboot you will be stuck on a screen "getting windows ready" for over 20 minutes.

Edited by dubsdj
Posted
Try logging on with a different account than the one originally used to do the updates as this has sometimes fixed Windows Updates not working for me.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...