I had a server that would not boot with the following error:
LogonUI.exe Bad Image. c:\windows\system32\rpcrtremote.dll (something about improper version of Windows etc. etc.) [basically a useless error since the file was fine]
The server would half boot, get stuck at this message and then not be able to use mouse or keyboard. It never finished the boot process.
After much troubleshooting and an obscure article, it appears that this is related to the behavior of Windows Server 2008 R2 unsigned driver loading policies.
I am now able to boot the server every single time if I use F8 and select the option to Disable Driver Signing Enforcement. It does not appear that there is a production worthy mechanism to disable this enforcement permanently, so the only option is to replace these system drivers.
I ran sigverif.exe and found that there are a total of 25 unsigned drivers. The problem is that these are all builtin Windows drivers, not hardware. They include files like http.sys, serial.sys, sermouse.sys etc.
Sfc /scannow reports protection violations which it can't fix, probably because of these files, but it never logs them as corrupt. Likewise it never replaces them or fixes their missing or invalid signatures.
What is the best way to replace these system drivers? I was thinking of booting to the repair options on the R2 disk and either using sfc or manually copying the files. Any thoughts?