Today I was doing a PC repair visit for a crash repair company. There was one particular PC that was running unusably slow, so I set about cleaning it up best I could.
Everything was running swimmingly until I ran a malware scan with malwarebytes. The computer aruptly shut down, as if there had been a power failure. I booted it up and tried again, but the PC turned off at the exact same point in the scan. I switched to using HitMan Pro to do a scan and, it too, caused the PC to switch off.
Further investigations revealed a startup entry that didnt appear in msconfig or CCleaner. It pointed to a directory in C:\Windows. When I opened that folder, the PC switched off. Same thing in safe mode.
Oddly, there is no "your PC failed to shut down correctly error" when Windows is next booted. No logs suggest why Windows would shut down as if someone had pulled the plug, either.
I have no idea whether this is some sort of hardware issue, software bug or malware infection. Anyone have any suggestions on where to go from here?
It was a subdirectory of C:\Windows, sorry - I should have made that more clear.
This is an old beige Windows XP tower. SSDs were science-fiction when they last upgraded their systems. I ran disk check, system file check and a disk defragment, none to any avail. sfc/mbam steps were also done in safe mode.
My current diagnosis is "I think you need a new computer"
Edit: AVG was able to complete a scan, but it came up clean.
The entry was hklm:run c:\windows\pchealth\somethingicantremember\binary\pub\binary\msconfig.exe
Looks like certain malware to me. This compounded by the fact it only showed up when I looked in regedit.
To be honest, I didn't even attempt a system restore. I had no idea how far back I would need to go, or whether it would work. Seemed like a time sink.
At this point, diagnosing is more of an intellectual curiosity.
Could be a very valid reason it's running on startup, such is the case if someone intentially changed what starts with Windows because it will automaticlly show MSCONFIG on the next startup. If someone did that they have to tick a box in MSCONFIG to tell it not to display again.
It's an annoying startup behaviour but if the file is corrupt that could cause issues. Anyways that startup behaviour can be stopped using this in CCleaner's winapp2.ini file: