0x80070057 error when I install iis in the turn windows features on or off

underber 21 Reputation points

Hi all,

As the title, when trying to install iis, this error occurred, how can I solve it?

There is no other error message except this, how can I troubleshoot?

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,046 Reputation points Microsoft Vendor


    There are many reasons for this error, first you can try to restart your computer and try again, if it still can't work, you can try to install IIS with PowerShell, this may get more error messages. about how to install IIS with PowerShell, you can refer to below steps:

    1. In the search, type PowerShell, and then click Windows PowerShell run as administrator.
    2. In Windows PowerShell, type the following command: Install-WindowsFeature -name Web-Server -IncludeManagementTools
    3. Press Enter.

    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.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Michael Taylor 49,166 Reputation points

    A quick google indicates that this is a storage issue. The first recommendation is to ensure you have enough storage space. The second recommendation is to check your drive for errors. Yet another recommendation is to run the Windows Update Troubleshooter to ensure WU is working properly.

    0 comments No comments

  2. Juan Sobrado - MSFT 406 Reputation points Microsoft Employee

    Hello @underber

    The detailed operations, and associated errors, of a role/feature install are stored in CBS.log files located in %systemroot%\logs\cbs

    In addition to data collection related to error the first troubleshooting step suggested is to run a CBS automated repair, for this open an admin cmd and run: dism /online /cleanup-image /restorehealth

    Then, from same cmd, run: sfc /scannow

    Reboot the machine and try install again. If problem persists check for errors in CBS logs.


    Juan Sobrado


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

    0 comments No comments

  3. underber 21 Reputation points

    Thanks everyone, I solved the problem after restarting the pc.

    0 comments No comments