Patch Status Failed with error : WUA error (0x80248014): the caller has requested some action on a service that is not known to the datastore

Last Modified

Tue Dec 01 16:57 GMT 2020

Description

  • Below is the batch file that will help us in resetting Windows 10 WMI datastore
  • Please use at your own risk, N-able cannot be held reliable

Environment

  • N-able N-central

Solution

  • NOTE: This will reboot the device!

net stop appidsvc
net stop bits
net stop cryptsvc
net stop msiserver
net stop wuauserv
PowerShell -ExecutionPolicy Unrestricted -Command "& {$manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest}"
net stop appidsvc
net stop bits
net stop cryptsvc
net stop msiserver
net stop wuauserv
Del "C:\ProgramData\Application Data\Microsoft\Network\Downloader\qmgr*.dat" /f /q
Del "C:\Windows\Logs\CBS\*.*" /f /s /q
Del "C:\Windows\Logs\DISM\*.*" /f /s /q
Del "C:\Windows\Logs\WindowsUpdate\*.*" /f /s /q
Del "C:\Windows\Temp\*.*" /f /s /q
Ren C:\WINDOWS\SoftwareDistribution SoftwareDistribution.bak
Ren C:\WINDOWS\system32\catroot2 catroot2.bak
bitsadmin.exe /reset /allusers
netsh winsock reset
shutdown -r -f -t 1