Skip to content

Troubleshoot a Windows Server Role or Feature That Fails to Install

Admin
November 19, 2026
5 min read
Beginner
💻 Target OS: Windows Server 2025

Before you begin

  • Applies to:Role or feature installation failures on Windows Server 2025.
  • Where to start:Open an elevated session on the target server. Use Desktop Experience or an approved management workstation for graphical checks, and PowerShell 7 or later unless a module requires Windows PowerShell.
  • What you need:Confirm the target server, edition, and installation option. Obtain approved compatible media if the feature payload is missing.
Guide tools
Guide tools
0/0 Steps (0%)

Troubleshooting Steps

01

Capture the exact role installation result

Start here

Where to click

  1. Open Server Manager → Notifications.
  2. Open the installation result and record the failed role or feature.

What to look for · Record the feature name, timestamp, and HRESULT. A restart request is a separate finding from a missing feature payload.

02

Check the feature state on the target

Run the inventory command in a shell with the ServerManager module. In PowerShell 7+, use Windows PowerShell if the module is unavailable. Replace the Web-Server example with the feature’s actual name.

Terminal window
Get-WindowsFeature -Name Web-Server | Select-Object Name, InstallState
03

Correlate servicing logs

Read the latest entries in %windir%\Logs\CBS\CBS.log and %windir%\Logs\DISM\dism.log. Match by time and HRESULT. Distinguish a missing source from corruption or a policy block. Check the required feature dependencies.

04

Correct the failed prerequisite

If a restart is pending, schedule it. For a missing payload, provide the approved compatible source through Specify an alternate source path or the supported management command. For a repairable component-store problem, follow the linked servicing guide.

05

Verify the feature and its function

Verify

Retry through the approved installer and confirm the feature reports Installed. Test one expected function, such as serving a known IIS request. Record whether a restart is still required.

Decide What to Do Next

FindingNext action
Source files unavailableVerify policy, media compatibility, and the source path.
Store corruption appears in CBSUse the component-store investigation before retrying.

References

Comments