Troubleshoot a Windows Server Role or Feature That Fails to Install
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
Troubleshooting Steps
Capture the exact role installation result
Start hereWhere to click
- Open Server Manager → Notifications.
- 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.
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.
Get-WindowsFeature -Name Web-Server | Select-Object Name, InstallStateCorrelate 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.
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.
Verify the feature and its function
VerifyRetry 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
| Finding | Next action |
|---|---|
| Source files unavailable | Verify policy, media compatibility, and the source path. |
| Store corruption appears in CBS | Use the component-store investigation before retrying. |
References
Your feedback keeps these production procedures accurate and battle-tested.