[SOLVED] Add/remove roles or features fails in Windows Server 2016

sansnil

Contributor
Joined
Apr 23, 2017
Posts
225
I'm pretty close to finalizing the setup of a new home Windows Server 2016 machine and went to add a new role only to discover every add or remove request fails with a error code of 0x80073701. I tried sfc /scannow and it keeps detecting corruption but can't fix it (from what I can decipher in the logs its C:\Windows\SysWOW64\NlsData0000.dll). I've also tried to restore health with dism but that also didn't fix the sfc /scannow issue as it still finds corrupted files. Any help would be greatly appreciated.

I ran SFCFix which didn't find anything and have attached a copy of my CBS logs folder. Here's the SFC Fix log just in case:
SFCFix version 3.0.0.0 by niemiro.
Start time: 2018-08-04 12:58:52.688
Microsoft Windows Server 10 Build 14393 (Updates Deferred) - amd64
Not using a script file.




AutoAnalysis::
SUMMARY: No corruptions were detected.
AutoAnalysis:: directive completed successfully.




Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 0 datablocks.
Finish time: 2018-08-04 20:23:07.214
----------------------EOF-----------------------
 

Attachments

Hello and welcome to Sysnative! Please note that it is very late where I live and we will resume troubleshooting this when I get some sleep. For now, do the following:


Step#1 - 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 file below, SFCFix.zip, and save this to your Desktop. Ensure that this file is named SFCFix.zip - 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 SFCFix.zip.
  5. Drag the file SFCFix.zip onto the file SFCFix.exe and release it.
  6. SFCFix will now process the script.
  7. Upon completion, a file should be created on your Desktop: SFCFix.txt.
  8. Copy (Ctrl+C) and Paste (Ctrl+V) the contents of this file into your next post for me to analyse please - put tags around the log to break up the text.



Step#2 - DISM /RestoreHealth Scan
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. Right-click on the Start button and select Command Prompt (Admin)
  2. When command prompt opens, Copy (Ctrl+C) and Paste (Right-click > Paste) the following command into it, then press Enter
    Dism /Online /Cleanup-Image /RestoreHealth
  3. Once it finishes, copy and paste the following into the command-prompt window and press Enter. If prompted to overwrite the existing file go ahead.
    copy %windir%\logs\cbs\cbs.log "%userprofile%\Desktop\cbs.txt"
  4. Once this has completed please go to your Desktop and you will find CBS.txt => Please zip/upload to this thread.
    Please Note:: if the file is too big (over 7MB) to upload to your next post, please upload via a service and just provide the link.
 

Attachments

Hi, thanks very much for helping! No worries at all about picking this up tomorrow of course. I've attached the cbs.txt file (had to zip it because it was large) and here is the output from running the script you send against SFCFix. Thanks again!

Code:
SFCFix version 3.0.0.0 by niemiro.Start time: 2018-08-04 21:34:14.324
Microsoft Windows Server 10 Build 14393 (Updates Deferred) - amd64
Using .zip script file at C:\Users\sansnil\Desktop\SFCFix.zip [0]








PowerCopy::
Successfully took permissions for file or folder C:\Windows\Winsxs


Successfully created directory tree \\?\C:\Windows\Winsxs\amd64_microsoft-windows-winocr-ocrengines_31bf3856ad364e35_6.2.9200.16384_none_fc0ebe40bcd54a89.


Successfully copied file C:\Users\sansnil\AppData\Local\niemiro\Archive\Winsxs\amd64_microsoft-windows-winocr-ocrengines_31bf3856ad364e35_6.2.9200.16384_none_fc0ebe40bcd54a89\tctree.dat to C:\Windows\Winsxs\amd64_microsoft-windows-winocr-ocrengines_31bf3856ad364e35_6.2.9200.16384_none_fc0ebe40bcd54a89\tctree.dat.


Successfully restored ownership for C:\Windows\Winsxs
Successfully restored permissions on C:\Windows\Winsxs
PowerCopy:: directive completed successfully.








Successfully processed all directives.
SFCFix version 3.0.0.0 by niemiro has completed.
Currently storing 1 datablocks.
Finish time: 2018-08-04 21:34:19.188
Script hash: UJdbUj0H0oFsolmXOpHC6pV6UIWSLQK6X8RyMPBF+60=
----------------------EOF-----------------------
 

Attachments

Hi,

Attached is the CBS.log file zipped up and here is the output from SFC /scannow in case helpful:

Code:
C:\Windows\system32>sfc /scannow


Beginning system scan.  This process will take some time.


Beginning verification phase of system scan.
Verification 100% complete.


Windows Resource Protection found corrupt files and successfully repaired
them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
supported in offline servicing scenarios.


C:\Windows\system32>

Thanks!
 

Attachments

Step#1 - Export SideBySide


  1. Click on the Start button and in the search box, type regedit
  2. When you see regedit on the list, right-click on it and select Run as administrator
  3. 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\SideBySide
  4. Once selected, click File > Export....
  5. Change the Save as type: to Registry Hive Files (*.*)
  6. Name this file SxS (with no file extension) and save it to your Desktop.


Once done please upload this file via a file sharing service of your choice.
 
Please open Command Prompt as Administrator and enter the following commands pressing Enter after each:

Code:
reg delete  "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft-windows-naturallanguage6-base_31bf3856ad364e35_none_3e3344a37f21d3c5"  /ve /f

Code:
reg delete  "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\Winners\x86_microsoft-windows-naturallanguage6-base_31bf3856ad364e35_none_3e3344a37f21d3c5\10.0"  /ve /f

Let me know if you get the message: "The operation completed successfully."
 
Wow you're good. No corrupted files found:

Code:
C:\Windows\system32>sfc /scannow

Beginning system scan.  This process will take some time.


Beginning verification phase of system scan.
Verification 100% complete.


Windows Resource Protection did not find any integrity violations.


C:\Windows\system32>
 
Unfortunately I'm still getting that 0x80073701 error. I also restarted just in case that made a different but same outcome.
 
Let's dig a bit deeper:

Step#1 - Capture Process Monitor Trace
1. Download and run Process Monitor. Leave this running while you perform the next steps.
2. Try enabling the feature just like you have in the past.
3. Stop Process Monitor as soon as it fails. You can simply do this by clicking the magnifying glass on the toolbar as shown below.
11908d1430506241-windows-updates-fail-repeatedly-stop-jpg


4. Select the File menu...Save... and save the file to your desktop. This is likely the default location. The name (unless changed) will be LogFile.PML. This is fine.
5. Zip up and attach the LogFile.PML file as well as your CBS.log
 
One (or more) critical keys of your COMPONENTS hive appears to be missing. Please upload a copy of it for me to verify that is indeed the case and prepare a fix:

Retrieve Components Hive
1. Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
2. Please copy this file to your desktop.
Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
3. Right-click on this file on your desktop and select Send To...Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
4. The file will likely be too large to upload here so please upload to a file sharing service and just provide the link here.
 

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

Back
Top