[SOLVED] Error Code 800F0831 when installing updates on Server 2012 R2

SFCFix Script

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. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.
  9. If successful, please try updating again and attach CBS.log if it fails.
 

Attachments

Last edited:
SFCFix Script

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. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.
  9. If successful, please try updating again and attach CBS.log if it fails.

I ran SFCFix successfully:
Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-08-10 16:38:00.271
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\a.kazak\Downloads\Windows 2012 R2 Updates\800F0831\2018-08-10\SFCFixScript.txt [0]

RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components.

Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-i..rnational-timezones_31bf3856ad364e35_6.3.9600.18266_none_061d2776dd77483e.

Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-i..rnational-timezones_31bf3856ad364e35_6.3.9600.18266_none_061d2776dd77483e.
Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components.
RegistryScript:: directive completed successfully.

Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 2 datablocks.
Finish time: 2018-08-10 16:38:01.058
Script hash: k4b4BZ3oFkSuaK9/pkIDMhWzxBRzDaWZBc8FvOPhwjY=
----------------------EOF-----------------------

After rebooting the server I got the following response from WU (see CBS.log attached):
2018-08-11_05h59_41.png

View attachment 2018-08-11 CBS.zip
 
Great job!


SFCFix Script

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. If you are after assistance, please start a thread of your own.



  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put tags around the log to break up the text.
  9. If successful, please try updating again and attach CBS.log if it fails.

Step#2 - Export registry as hive



  • Click on the Start button and in the search box, type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).
  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send To -> Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload to SendSpace and just provide the link here.
 

Attachments

Great job!


SFCFix Script

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. If you are after assistance, please start a thread of your own.



  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put tags around the log to break up the text.
  9. If successful, please try updating again and attach CBS.log if it fails.

Step#2 - Export registry as hive



  • Click on the Start button and in the search box, type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).
  • Name this file ComponentBasedServicing (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send To -> Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload to SendSpace and just provide the link here.

I ran SFCFix successfully:
Code:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-08-13 06:10:23.091
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\a.kazak\Desktop\SFCFixScript.txt [0]


RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Deployments\123ebfa5f6f..97ee9b474ab_31bf3856ad364e35_6.3.9600.18266_47592ba41b332465.


Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Deployments\123ebfa5f6f..97ee9b474ab_31bf3856ad364e35_6.3.9600.18266_47592ba41b332465.


Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Deployments\123ebfa5f6f..97ee9b474ab_31bf3856ad364e35_6.3.9600.18266_47592ba41b332465.
RegistryScript:: directive completed successfully.


Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2018-08-13 06:10:23.614
Script hash: YOrvxWZLzxmcRcBnhBu3ldbei/uX0eI9CDFDr1/TOaU=
----------------------EOF-----------------------


After rebooting the server I got the following response from WU (see CBS.log attached):
2018-08-13_11h06_27.png
View attachment 2018-08-13 CBS.zip

Exported registry as hive to the attached file.
View attachment 2018-08-13 Component Based Servicing.zip
 
Install Update with DISM


  1. Download this update and save to your desktop. The file name will be Windows8.1-KB3139649-x64.cab.zip.
  2. Right-click on this file and select Extract All... Click the Extract button. You can close the folder window that opens
  3. Click on the Start button and in the search box, type Command Prompt
  4. When you see Command Prompt on the list, right-click on it and select Run as administrator. Go ahead and allow if you receive the UAC prompt.
  5. Copy and paste the following command into the command prompt window and press enter.

    dism /online /add-package /packagepath:%userprofile%\desktop\Windows8.1-KB3139649-x64.cab
  6. You should receive the message:
    The operation completed successfully.
    Restart Windows to complete this operation. <---You may not get this line.
    Do you want to restart the computer now (Y/N)? <---You may not get this line.


Go ahead and do so if prompted. Let me know what errors if any come up. If you do get errors, please zip/attach your CBS.log
 
Install Update with DISM


  1. Download this update and save to your desktop. The file name will be Windows8.1-KB3139649-x64.cab.zip.
  2. Right-click on this file and select Extract All... Click the Extract button. You can close the folder window that opens
  3. Click on the Start button and in the search box, type Command Prompt
  4. When you see Command Prompt on the list, right-click on it and select Run as administrator. Go ahead and allow if you receive the UAC prompt.
  5. Copy and paste the following command into the command prompt window and press enter.

    dism /online /add-package /packagepath:%userprofile%\desktop\Windows8.1-KB3139649-x64.cab
  6. You should receive the message:
    The operation completed successfully.
    Restart Windows to complete this operation. <---You may not get this line.
    Do you want to restart the computer now (Y/N)? <---You may not get this line.


Go ahead and do so if prompted. Let me know what errors if any come up. If you do get errors, please zip/attach your CBS.log

Successfully installed Windows8.1-KB3139649-x64.cab via DISM without either errors or restart computer prompts.

Code:
C:\Windows\system32>DISM /ONLINE /ADD-PACKAGE /PACKAGEPATH:%USERPROFILE%\Desktop\Windows8.1-KB3139649-x64.cab

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031


Image Version: 6.3.9600.17031


Processing 1 of 1 - Adding package Package_for_KB3139649~31bf3856ad364e35~amd64~~6.3.1.0
[==========================100.0%==========================]
The operation completed successfully.
 
Please do not install Optional updates. Let's focus on the important ones. Plus, I don't need new reg/hive exports exports every time, I just need the CBS folder for now, so we can save a bit of time there. I'll let you know if sth else is needed.

SFCFix Script

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. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.
 

Attachments

Please do not install Optional updates. Let's focus on the important ones. Plus, I don't need new reg/hive exports exports every time, I just need the CBS folder for now, so we can save a bit of time there. I'll let you know if sth else is needed.

SFCFix Script

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. If you are after assistance, please start a thread of your own.


  1. Download SFCFix.exe (by niemiro) and save this to your Desktop.
  2. Download the attached file, SFCFixScript.txt, and save this to your Desktop. Ensure that this file is named SFCFixScript.txt - do not rename it.
  3. Save any open documents and close all open windows.
  4. On your Desktop, you should see two files: SFCFix.exe and SFCFixScript.txt.
  5. Drag the file SFCFixScript.txt onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a log should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this into your next post for me to analyse please - put [CODE][/CODE] tags around the log to break up the text.

Done!
Please see the log attached.

Code:
SFCFix version 3.0.0.0 by niemiro.Start time: 2018-08-17 07:21:20.780
Microsoft Windows Server 2012 R2 Update 3 - amd64
Using .txt script file at C:\Users\a.kazak\Desktop\SFCFixScript.txt [1]


RegistryScript::
Successfully took ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-i..rnational-timezones_31bf3856ad364e35_6.3.9600.18266_none_061d2776dd77483e.


Successfully imported registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-i..rnational-timezones_31bf3856ad364e35_6.3.9600.18266_none_061d2776dd77483e.


Successfully restored ownership and permissions for registry key HKEY_LOCAL_MACHINE\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-i..rnational-timezones_31bf3856ad364e35_6.3.9600.18266_none_061d2776dd77483e.
RegistryScript:: directive completed successfully.


Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 3 datablocks.
Finish time: 2018-08-17 07:21:21.186
Script hash: k4b4BZ3oFkSuaK9/pkIDMhWzxBRzDaWZBc8FvOPhwjY=
----------------------EOF-----------------------

What are my next steps?
 

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

Back
Top