FIX: Server execution failed inside Add roles and features

3 minute read
microsoft - Server executionm failed add roles and features wizard

Home » Fix » FIX: Server execution failed inside Add roles and features

If you find yourself looking at a Server execution failed error inside the Add roles and Features wizard, you must know you are not the only one.

A large number of users have reported encountering the same error message. It seems that this issue is most commonly found in servers running Server 2012 R2. 

Here is what one user on Microsoft Technet forums had to say about his issue:

I have a virtual server running Server 2012 R2. When I try to use the Server Manager to get to the Roles & Features part to add the Desktop Experience role. It fails with the error “Online – Cannot get role and feature data”. I went to PowerShell and just tried the command “Get-WindowsFeature -ComputerName SERVER” and I get Server execution failed. I am logging in with the Administrator account, so I am pretty sure it’s not a permissions issue.

Because we know how important it is to be able to modify and add new roles and features to your Server 2012 R2 system, in today’s article we will explore some of the best troubleshooting methods available.

Please follow the steps presented here carefully and in the order that they were written. Also, it is recommended that you try to see if the issue is fixed after each of the methods.

This will allow you to find the least invasive solution to your issue, without exposing your system to any danger.


Server execution failed error when adding roles and features

1. Run SFC command inside PowerShell (Admin)

  1. Press the Win+X keys on your keyboard -> select PowerShell (Admin).powershell admin - server execution failed add roles and features wizard
  2. Inside the command window -> type in sfc /scannow and press Enter.
  3. Wait for the process to complete and note if any errors were found.
  4. Check to see if the issue persists. If it does, please try the next method.

2. Run DISM command inside PowerShell (Admin)

  1. Press the Win+X keys -> select PowerShell (Admin).
  2. Inside the newly opened window -> type the following command: dism /online /cleanup-image /restorehealthdism command - server execution failed add roles and features wizard
  3. Press Enter to run the command.
  4. Wait for the process of repairing any issues to complete.
  5. Check to see if the issue is resolved.

Did you encounter an internal server error on Windows 10 ? Here’s a quick fix


3. Reboot your server to fix the Server execution failed errorrestarting PC - server execution failed add roles and features wizard

In some cases, users have reported that they fixed this issue by simply restarting their server. This error can also be caused by not running your Server 2012 R2 with the latest updates.

The restart performed at this step will allow your system to install the necessary updates.


4. Perform a repair install using the root installer mediatools - server execution failed add roles and features wizard

If all of the above methods failed, you will need to connect your installer media to your server and run a repair install.

Even though this might mean that you need to reconfigure your server, it will allow you to get rid of the error message.


Conclusion

We hope this guide helped you get rid of the error Server execution failed while adding roles and features inside the wizard.

Please feel free to let us know if it did by using the comment section below.

READ ALSO:

Discussions

Next up

Troubles with your Uplay login? Here’s what you can do

John Taylor avatar. By: John Taylor
2 minute read

Some users have reported that they are having problems when trying to log in their Uplay client. Apparently, they receive an error message that looks […]

Continue Reading

Scroll bar is missing in Chrome on Windows 10 [FIX]

Alexandru Voiculescu By: Alexandru Voiculescu
2 minute read

Google Chrome is the most popular browser out there. It is a reliable tool to surf the Internet and has many great features. However, nothing […]

Continue Reading

What to do when your Uplay achievements are not syncing

John Taylor avatar. By: John Taylor
2 minute read

Uplay is an amazing game distribution platform created by Ubisoft. It can be used to buy and download games as well as DLCs. It can […]

Continue Reading