Hello everyone !! Thank you for your replies ! I appreciate it
I was beginning to think that no one will ever answer my questions on bleepingcomputer, I already tried to seek help once and no one replied for two weeks, I figured it out at the end.
Thank you both for your replies ! Well it is the same for me
I did not quite understand what type of error is that, I just knew that the file is corrupted, and that file is located in " Windows\winsxs\amd64_microsoft-windows-printing-xpsprint_31bf3856ad364e35_6.1.7601.17578_none_098c4a392817e693\XpsPrint.dll " as indicated in the log. I took a look on the url you provided and I do not think this is the case of a driver problem. What makes me say that is, well first of all, the file name is XpsPrint.dll and I do not have any printer installed, and second of all, there are no symptoms what so ever of a malfunctioning driver, and third of all, I ran the chkdsk tool for the hard disk drives and the windows memory diagnostic tool for the RAMs and both results were clean !
I absolutely agree with you, that a new system is not supposed to have this type of problem. The first time, it was a hardware problem ( bad sectors in the hard disk drive ) and the laptop was slow and freezing. However, the faulty hard disk drive has been replaced by toshiba, and the laptop is running smoothly now. I do not believe that this is a hardware problem anymore. The laptop is no more slow, nor freezing randomly, however it does go slow JUST when the corrupted file is being accessed: meaning when i try to run a full scan, as soon as the antivirus / anti spyware begins scanning this 1.3 megabytes file, the laptop becomes slow and might freeze if I try to use it ( browse, run applications, ... ) because the hard disk drive indicator ( LED ) is on all the time, meaning the antivirus / anti spyware is going crazy trying to access this corrupted file for scanning. It usually take about 30 minutes to 1 hour just to scan this file.
I followed the instructions posted HERE
. It shows how to troubleshoot missing or corrupted files on windows vista or 7, with the sfc /scannow or sf /verifyonly command. However I followed something else to track the log file of those commands: instead of executing this command " findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >sfcdetails.txt " which did not show me the error result I displayed in the first post, I executed this command " copy %windir%\logs\cbs\cbs.log %userprofile%\desktop\cbs.txt " which will make a copy of the entire log, because one cannot directly browse the log ( it will not open what so ever, access is denied ) and I manually searched the file ( that is one LONG file ! ) in order to find the error.
In addition, in the url I provided above, a method is proposed to repair a file that the command sfc /scannow cannot repair. I just followed and it worked ! Here is what I did:
- Start -> type cmd -> right click -> run as administrator.
- Type " takeown /f Path_And_File_Name " and press enter. For my case I first changed the current working directory with cd command to the folder containing the corrupted file: " cd .. " , because the current directory was C:\windows\system32 and the file path is Windows\winsxs\amd64_microsoft-windows-printing-xpsprint_31bf3856ad364e35_6.1.7601.17578_none_098c4a392817e693\XpsPrint.dll , then " cd winsxs " , then " cd amd64_microsoft-windows-printing-xpsprint_31bf3856ad364e35_6.1.7601.17578_none_098c4a392817e693 " , because the corrupted file is there , then " dir " to make sure that the file XpsPrint.dll is there. See Screen1.jpg attached . Then I entered the command " takeown /f XpsPrint.dll ". Since this means accessing the corrupted file, and after I waited like 10 minutes the result was : SUCCESS: The file (or folder): "C"\Windows\winsxs\amd64_microsoft-windows-printing-xpsprint_31bf3856ad364e35_6.1.7601.17578_none_098c4a392817e693\XpsPrint.dll" now owned by user **** ( I replaced my username by stars ). See Screen2.jpg attached .
- Type " icacls Path_And_File_Name /GRANT ADMINISTRATORS:F " and press enter. For my case I entered " icacls XpsPrint.dll /grant administrators:F ". I waited again about 10 minutes and the result was : Successfully processed 1 files; Failed processing 0 files. It seems like windows is making grammar mistakes ! See Screen2.jpd attached .
- I have an other computer running Windows 7 ultimate 64 bits version. I searched the file ( supposedly clean and not corrupted because I am having no troubles what so ever, plus I ran sfc /verifyonly just to make sure and windows found no integrity violations ) XpsPrint.dll in the same path and found it. I copied it to the desktop of my laptop so now the clean file XpsPrint.dll is in C:\users\****\desktop\XpsPrint.dll . So I went back to cmd prompt and entered " copy c:\users\****\desktop\XpsPrint.dll XpsPrint.dll " which will copy the clean file into the corrupted one. After about 10 minutes, cmd asked me if I want to overwrite and I types yes. See Screen3.jpg attached .
It worked ! I replaced the corrupted file with a clean one !
Just to make sure, I restarted my laptop, and ran sfc /verifyonly in an elevated command prompt and the result was : Verification 100% complete. Windows resource protection did not find any integrity violations.
The problem is solved
!! I hope it is, everything is indicating that it is solved !
Thank you all for your help and time !
Edited by Leeeeeeelo, 21 May 2011 - 05:40 AM.