How do I gain access over C:\Windows\Logs\CBS\CBS.log?
I can't access this log file for some reason. This is what I have tried so far:
- run prompt: C:\Windows\Logs\CBS\CBS.log
- notepad: C:\Windows\Logs\CBS\CBS.log
- elevated cmd: C:\Windows\Logs\CBS\CBS.log
- notepad++
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Windows\system32>C:\Windows\Logs\CBS\CBS.log
Access is denied.
C:\Windows\system32>What am I missing? How do I access this file?
I am trying to view this log as part of a system file checker operation. It has found corrupted files and it clearly indicated that I can find the log in this location.
Windows Resource Protection found corrupt files and successfully repaired
them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.logBut for some unfounded reason Windows doesn't allow me to view this file. Why?...
55 Answers
You must run the tools elevated (as admin) to open the file:
You can also copy the file to your desktop and open it there.
4The Microsoft article on SFC suggests using the following command to copy the SFC entries from the log to your desktop. You should then be able to open it in Notepad.
1.Open an elevated command prompt as described in the previous step 1.
2.At the command prompt, type the following command, and then press ENTER:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
2I think you should be able to take a copy and open that.
3Go back to cmd (right click and run as administrator) and type in:
notepad C:\Windows\Logs\CBS\CBS.logThen hit ENTER.
Open Start Menu > select Accessories > right-click on Notepad > select Run as Administrator. After Notepad opens > select File > Open > when Win File Explore window opens > select File Type drop down menu > select All splat.splat > go to C:\Windows\Logs\CBS\ > select CBS.log > select Open