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

underber 21 Reputation points
2021-11-29T14:44:37.477+00:00

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,036 Reputation points Microsoft Vendor
    2021-11-30T01:59:56.737+00:00

    @underber

    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 48,576 Reputation points
    2021-11-29T15:33:15.753+00:00

    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
    2021-11-30T03:03:20.05+00:00

    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.

    Regards,

    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
    2021-11-30T16:27:25.663+00:00

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

    0 comments No comments