Trying to run the patch compliance report based on OU per Software update Group (For October 2014) ,report is available to download from http://eskonr.com/2014/11/sccm-configmgr-2012-patch-report-ou-based-compliance-status-per-update-group/ . Report shows some good success rate but still there are computers with unknown status .Unknown status means,these clients do not report anything to CM DB whether they required patches or not required ,no compliance information at all.
I pick one computer randomly and start looking at Software Update logs on the client side . The software update logs that helps to identify the scan issues are WUAHandler.log (CCM\logs),windowsupdate.log(%Windir%)
WUAHandler.log log shows ,client started to search for windows updates but it failed with error code 0xc8000222.
Error message : OnSearchComplete - Failed to end search job. Error = 0xc8000222.
Scan failed with error = 0xc8000222.
To know the description of this error code,tried error lookup from the CMtrace log ,but that doesn’t give me any clue.
The next log to look at is ,Windowsupdate.log ,to know more about windowsupdate.log and how to read it,please refer https://support.microsoft.com/kb/902093?wa=wsignin1.0 and http://www.updatexp.com/windows-update-log.html
Windowsupdate.log errors out with message : DtaStor FATAL: Failed to initialize datastore, error = 0xC8000222
It seems to like,the datastore or other related component from C:\windows\softwaredistribution folders are corrupted.
The solution for this issue ,is to stop windows update service,rename software distribution folder,start windows update service and then run the software update scan action.
1. Open the CMD (run as administrator) ,type net stop wuauserv to stop the windows update service
2.Type rename C:\windows\softwaredistribution softwaredistribution.old to rename
3.Type net start wuauserv to start windows update service
4.Initiate software update scan cycle from Configuration manager applet .
To run action 4,there are various scripts/tools available,like wmic,right click tools,sccm client center etc.
You can also script this solution to perform on bulk clients.
After you run action 4,monitor WUAhandler.log ,should see sync status with success.
Hope it helps!