Unable to Uninstall Web DAV publishing Feature in IIS Manager

RavillaVishal-4134 0 Reputation points
2024-06-20T15:11:04.91+00:00

I need help uninstalling the IIS feature (Web DAV publishing) from IIS Manager on a Windows 2019 core server. When I enter "uninstall-WindowsFeature Web-DAV-Publishing" in PowerShell, I receive an error message that says "Removal of one or more roles, role services, or features failed. The referenced assembly could not be found. Error: 0x80073701." Can someone provide a solution?

Internet Information Services
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2024-06-21T03:19:58.6866667+00:00

    @RavillaVishal-4134

    There are multiple reasons for this error, insufficient permission is one of them.

    Please make sure you run powershell with administrator to uninstall the IIS feature.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Abhijit Khule 0 Reputation points
    2024-06-21T03:39:33.54+00:00

    If you're encountering the error "Removal of one or more roles, role services, or features failed. The referenced assembly could not be found. Error: 0x80073701" when trying to uninstall the IIS Web DAV Publishing feature on a Windows Server 2019 Core using PowerShell, it typically indicates an issue with the Windows component store

    Run the System File Checker (SFC): Open PowerShell with administrative privileges and run the following command:

    Use the Deployment Imaging Service and Management Tool (DISM): If SFC finds issues but can’t fix them, use DISM to repair the Windows image. Run these commands one by one in PowerShell:

    Attempt to Remove the Feature Again: After the DISM commands complete successfully, try removing the Web DAV Publishing feature again:

    Ensure Windows Updates Are Installed:
    Clean Up the Component Store:

    Reboot the Server

    # Run SFC
    sfc /scannow
    # Run DISM commands
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth
    # Clean up component store
    DISM /Online /Cleanup-Image /StartComponentCleanup
    # Attempt to remove the feature again
    Uninstall-WindowsFeature Web-DAV-Publishing
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.