IIS Feature cant install on Server 2022

Shabin Suresh 186 Reputation points
2025-01-19T07:52:25.9766667+00:00

Dear Team,

IIS Feature cant be install on server 2022, tied via Powershell and Server Manager. Scanned system and DISM also no corruption found in OS.

Kindly help.

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,609 questions
{count} votes

Accepted answer
  1. Marcin Policht 32,735 Reputation points MVP
    2025-01-19T12:32:48.1066667+00:00

    Try the following


    1. Review Installation Logs

    • Examine the log files for more detailed error information:
      • DISM Logs: Located at C:\Windows\Logs\DISM\dism.log.
      • CBS Logs: Located at C:\Windows\Logs\CBS\CBS.log.
    • Look for error codes or descriptions related to IIS installation failures.

    2. Check Dependencies

    • IIS relies on several dependent features to install successfully. Ensure these features are enabled:
      • HTTP Activation
      • .NET Framework 4.8 Features
      • Windows Process Activation Service
    • Install dependencies manually:
           Install-WindowsFeature Web-Server -IncludeAllSubFeature
      

    3. Clear Component Store and Rebuild

    • If there’s an issue with the component store even though DISM reports no corruption, clearing and rebuilding it might help:
           DISM /Online /Cleanup-Image /StartComponentCleanup
           DISM /Online /Cleanup-Image /RestoreHealth
      
    • Then retry installing IIS.

    4. Install Using a Specific Source

    • Missing or corrupted feature files may prevent installation. Use an alternative source from the installation media:
      1. Mount the Windows Server 2022 ISO.
      2. Locate the Sources\SxS folder on the mounted ISO.
      3. Run the following command to install IIS from the ISO:
                Install-WindowsFeature Web-Server -Source D:\Sources\SxS
        
        Replace D: with the drive letter of your mounted ISO.

    5. Verify and Reset Server Manager

    • If Server Manager is not working correctly:
      1. Reset the Server Manager feature installation cache:
                Remove-Item -Path C:\Windows\System32\ServerManager\ComponentConfiguration\* -Force
        
      2. Restart the server and try again.

    6. Check Group Policy

    • Ensure no Group Policies are preventing the installation of IIS. Check if the following policies are configured:
      • "Do not allow installation of features on demand"
      • "Specify settings for optional component installation"
    • Run gpedit.msc to check or confirm using:
           Get-GPO -All | Select-String -Pattern 'Feature' -CaseSensitive
      

    7. Temporarily Disable Antivirus or Endpoint Protection

    • Some antivirus or endpoint protection software might block certain operations during feature installation. Temporarily disable them and retry.

    8. Repair/Upgrade Installation

    • If none of the above steps work, an in-place upgrade/repair of the Windows Server installation might resolve deeper system issues:
      1. Boot from the Windows Server 2022 installation media.
      2. Select the Repair your computer option and choose to keep settings and features.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


0 additional answers

Sort by: Most helpful

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.