Windows Server Roles And Features Cannot Be Automatically Installed

In today’s tutorial, I will discuss a few solutions for a very common error: Windows server roles and features cannot be automatically installed. I recently faced this error while trying to install .Net Framework 3.5 on a Windows Server machine. I was doing this exercise to install a SharePoint On-Premises version on a Windows Server laptop.

Even when I tried to install .Net Framework 3.5 on a Windows server laptop, it gave me the below error:

The following feature couldn’t be installed: .NET Framework 3.5 (includes .NET 2.0 and 3.0)

Windows Server roles and features cannot be automatically installed or uninstalled via the Windows Features Control Panel.

To install Windows Server roles and features, start Server Manager or use the Server Manager cmdlets for Windows PowerShell. For more information, see Server Manager Help.

The error looks like the screenshot below:

Windows Server Roles and Features Cannot Be Automatically Installed

Windows Server Roles and Features Cannot Be Automatically Installed

Let me show you the solution that works for me, and I will also add a few solutions you can try if this solution does not work.

We can not download and install .Net framework 3.5 as a standalone. We have to install it through the Server Manager.

  • Open Server Manager and then click on Add roles and features.
windows server roles and features cannot be automatically installed or uninstalled via the windows
  • This will open the “Before you begin” dialog box. Click on Next.
  • Here, in the Select installation type, choose “Role-based or feature-based installation” and then click Next.
  • Then in the “Select destination server”, select the “Select a server from the server pool” radio button and choose the server name and click on Next. In the Select server roles, no need to select anything. Just click on Next.
  • In the Select Features page, select .NET Framework 3.5 Features. Then click on Install.
the following feature could not be installed .net framework 3.5
  • Then click on Next, which will open the “Confirm installation selections” dialog box. There, choose the checkbox “Restart the destination server automatically if required.” Then click on Install. The above step will install .Net framework 3.5 in Windows server.

After this, the error did not come, and I was able to fix the error: windows server roles and features cannot be automatically installed.

If this fix did not work, you can try the solutions below.

You’ll usually encounter specific error messages when Windows Server roles and features fail to install. Here are some of the most common ones that I have experienced.

Error MessageLikely Cause
“The request to add or remove features on the specified server failed”Missing prerequisites or corrupted component store
“Installation of one or more roles, role services, or features failed”Insufficient disk space or missing source files
“Error: 0x800F0954”Missing source files or .NET Framework installation issues
“CBS store corrupted”Component-based servicing store corruption
Red X in the installation wizardRegistry or permission issues

Now, here are a few solutions you can try.

Solution 1: Verify Server Manager Has Fully Loaded

A simple but often overlooked issue is attempting to install roles before the Server Manager has completely loaded.

Solution:

  1. Launch Server Manager
  2. Wait until the Server Manager loads completely before proceeding
  3. Look for the “Add Roles and Features” option to become fully enabled
  4. Then proceed with your installation

Check out How to Uninstall Copilot in Windows 11?

Solution 2: Fix Registry Issues Causing Installation Failures

One common cause of roles and features installation failures is registry-related issues that prevent proper component installation.

  1. Press Win+R and type “regedit” to open Registry Editor
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
  3. Look for the “RebootPending” key – if it exists, a reboot is required
  4. If you see a red X during installation, check for permissions issues in this registry area
  5. Close Registry Editor
  6. Open Server Manager and try the installation again

I’ve found this approach particularly effective when dealing with installations that fail with a red X indicator but provide limited error information.

Read How to Turn Off Copilot in Windows 11?

Solution 3: Address Source File Access Issues

Sometimes, Windows can’t find the necessary source files to install roles and features, particularly if you’re working with a server that doesn’t have internet access.

  1. Mount the Windows Server installation media (ISO file or DVD)
  2. Open PowerShell as Administrator
  3. Use the following command to specify the source path: Install-WindowsFeature -Name <feature-name> -Source <path-to-source-files> For example:Install-WindowsFeature -Name Web-Server -Source D:\sources\sxs
  4. Alternatively, in Server Manager:
    • Start the Add Roles and Features Wizard
    • Proceed until you reach the “Confirmation” page
    • Check “Specify an alternate source path”
    • Enter the path to the \sources\sxs folder on your installation media
    • Complete the installation

This approach is particularly useful when dealing with error 0x800F0954, which often indicates missing installation files.

Solution 4: Fix .NET Framework Installation Issues

Many Windows Server roles depend on the .NET Framework, and problems with this component can cascade into role installation failures.

  • For .NET Framework-related errors like 0x800F0954:
    • Ensure Windows Update is working properly
    • Run the following command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:<path-to-sources\sxs>
  • If this doesn’t resolve the issue, try installing .NET Framework separately:
    • First, run:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
  • Then attempt your role installation

This approach specifically targets .NET Framework installation issues that often underlie other role installation failures.

Method 8: Use PowerShell Instead of Server Manager

Sometimes, the graphical interface of Server Manager encounters issues that PowerShell can avoid. So you can try installing it using Microsoft PowerShell.

  • Open PowerShell as Administrator
  • Check available features:
Get-WindowsFeature
  • Install the desired feature:
Install-WindowsFeature -Name <feature-name> -IncludeManagementTools

Conclusion

I hope now you understand how to fix the error: Windows Server roles and features cannot be automatically installed.

You may also like:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…