Friday, January 23, 2015

error logging - How to generate a cbs.log file in Windows 7?




This is a follow up question to Windows 7 Update Failed on Multiple attempts where I am having issues trying to install windows 7 monthly security roll up. Below is the error.



Windows Install Error



The problem might similar to Strange Windows 7 Security Monthly Quality Rollup Update failure. As part of root cause analysis, above question author has created cbs error log file.



Question: How do you create a cbs error log files?



References:





Answer



You don't need to do anything. The CBS.log file is generated automatically by the Windows Installer Module service.



You will find the log at:



C:\Windows\System\Logs\CBS\CBS.log


The most recent events will be found in the file named CBS.log. Each time the Windows Modules Installer service is started (e.g. at system startup) the current CBS.log file is compressed in a CbsPersist_.cab file. These archives are saved in the same folder.




Note that other functions such as System Restore also write events to the CBS log file.






Interesting side note: Sometimes the CBS.log archive process fails when Windows attempts to compress it but runs into the 2 GB CAB file size limit. If this happens, it can lead to exhaustion of all free space on the system drive because the log archive process will run repeatedly, generating hundreds of 128 MB temp files which eventually fill up the drive. (If this ever happens to you, this answer explains how to fix the problem.)


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...