[SOLVED] Windows Server 2012 R2 - trouble with Security Monthly Quality Rollups

Ran it. Failed to import registry key.

Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-11-08 16:03:36.793
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\AW\Desktop\SFCFixScript.txt [0]




RegistryScript::
Failed to import registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\prnms003.inf. A root key cannot be created under this hive.
RegistryScript:: directive failed to complete successfully.




Failed to process all directives successfully.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2022-11-08 16:03:36.793
Script hash: e5cTRQTBHA8zhsmCy187RJPv6JzD3UXWeZr0PDSJOkI=
----------------------EOF-----------------------
 
I forgot to load the hive. Re-did it and the directive completed successfully.

Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-11-08 16:06:46.039
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\AW\Desktop\SFCFixScript.txt [1]




RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\prnms003.inf.

Successfully imported registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\prnms003.inf.

Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\prnms003.inf.
RegistryScript:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2022-11-08 16:06:46.101
Script hash: e5cTRQTBHA8zhsmCy187RJPv6JzD3UXWeZr0PDSJOkI=
----------------------EOF-----------------------
 
Could you please attempt to update again? Please provide the same files as before it if fails.
 
Hi x BlueRobot, I just tried Windows Update and it failed again. Attached are the usual files.

Also, thank you very much for your help. I have no idea how I ended up in this situation and definitely don't know how to fix this issue without your help.
 

Attachments

It looks like we resolved the previous error at least. Here's the fix for the current issue, it's a different driver package this time: ntprint.inf. Could you please run the fix script attached? Please ensure that you have loaded your DRIVERS beforehand. Once complete, then please attempt to update again and then provide the same files as before it fails.
 

Attachments

Update failed again. Files requested are attached. What I don't understand and find totally counterintuitive - we seem to be having issues with print drivers - I don't even have a printer installed on this machine!


Code:
SFCFix version 3.0.2.1 by niemiro.
Start time: 2022-11-10 07:21:11.367
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\AW\Desktop\SFCFixScript.txt [0]




RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\ntprint.inf.

Successfully imported registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\ntprint.inf.

Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\DRIVERS\DriverDatabase\DriverInfFiles\ntprint.inf.
RegistryScript:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.2.1 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2022-11-10 07:21:11.399
Script hash: 4mfRUo0KwWyC2LnMyyxgAzHWwlMn2mOq5dStp4lhbGM=
----------------------EOF-----------------------
 

Attachments

It seems like this issue was within the SYSTEM hive this time.

Rich (BB code):
     idb:      {Register Driver Package: C:\Windows\System32\DriverStore\FileRepository\usbport.inf_amd64_eaba00d8b2938150\usbport.inf} 07:28:04.315
     idb:           Created driver package object 'usbport.inf_amd64_eaba00d8b2938150' in SYSTEM database node.
!!!  idb:           Failed to update driver packages for 'usbport.inf'. Error = 0x00000057
!!!  idb:           Failed to register driver package 'usbport.inf_amd64_eaba00d8b2938150' against 'usbport.inf'. Error = 0x00000057
!!!  idb:           Failed to register driver package 'C:\Windows\System32\DriverStore\FileRepository\usbport.inf_amd64_eaba00d8b2938150\usbport.inf'. Error = 0x00000057
     idb:      {Register Driver Package: exit(0x00000057)} 07:28:04.315
     sto:      {DRIVERSTORE IMPORT END} 07:28:04.315
     sto:      {DRIVERSTORE IMPORT END: exit(0x00000057)} 07:28:04.315
     sto:      Rolled back driver package import.
!!!  sto:      Failed to import driver package into Driver Store. Error = 0x00000057
     sto: {Stage Driver Package: exit(0x00000057)} 07:28:04.315
!!!  sto: Failed to stage all driver updates. Error = 0x00000057

Could you please provide the SYSTEM hive using these instructions:

Retrieve SYSTEM Hive
  • Please download the Freeware RegBak from here: Acelogix Software - Download products
    You will find it at the bottom of the page that the link brings you to.
  • Go ahead and install this program and accept all the defaults. After the last install screen the program should open.
  • Click the New Backup button. Accept the defaults and simply click Start.
  • When it says Finished successfully, click the Close button.
  • This will bring you back to the main screen of the program. You will see one entry in this list with the date that you did it. Right-click on this line-item and select Explore Backup...
  • This will bring you into the folder where the backup was made. You should see a Users folder and a Windows folder along with a couple other files. Double-click on the Windows folder to open it. Then open the System32 folder and then config folder. You should see around 6 files in here, one of which is named SYSTEM.
  • Copy this file to your Desktop.
  • Now right click on the file on your desktop and select Send to > Compressed (zipped) folder.
  • Then please upload the zip file(s) to your favourite file sharing website (it will be too big to upload here). Examples of services to upload to are Dropbox or OneDrive or WeTransfer and then just provide the link in your reply.
  • You can close any open windows you have as well as the RegBak program now.

I don't even have a printer installed on this machine!
That's because they're standard system drivers which are installed on every machine.
 
SYSTEM Hive Replacement with RegBak
Warning: This fix is specific to the user in this thread. No one else should follow these instructions as it may cause more harm than good.

  1. Close all open programs and save all your work. You will need to reboot the machine during this process.
  2. Download the SYSTEM.ZIP attached.
  3. Right-click on SYSTEM.ZIP and select Extract All.... Ensure the "Show extracted files when complete" checkbox is checked and click the Extract button.
  4. The system hive will be extracted. You will see the file named SYSTEM (no extension)
  5. Copy the SYSTEM hive to where you previously saved a backup. It should be (C:\Windows\RegBak\PC-NAME\DATE\Windows\System32\Config)
  6. 2014-10-1818_56_49-config_zpscbb8aad0.png
  7. Overwrite the one that is currently there when prompted.
  8. Open RegBak by click Start and selecting Registry Backup and Restore. Highlight the backup in the list, and press Restore. Click Start. RegBak will reboot your computer to complete the restore process.

Let me know if the hive was replaced or if there were any errors.
 

Attachments

Hi,

Registry was restored successfully without any errors. The machine was rebooted as part of the process - no errors - Windows is working fine. Should I try an update?

Thanks.
 
Yes please, please provide the setupapi.dev.log and CBS log(s) as before it fails.
 
SUCCESS. Finally - the update ran successfully.

Screenshot 2022-11-17 080723.png

Thank you x BlueRobot - couldn't have fixed this without your help.
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top