Skip to main content
Skip table of contents

The setup fails because it is unable to install windows server roles and features

Description

Upgrading or installing IAS onto a server without connection to Windows Update service, the setup could fail with error message "Unable to install Windows Server 201X roles and features".

image-20250113-153853.png

Cause

The setup is trying to install a windows role that is not already installed; this operation fails whenever the server has no connection to Windows Update service. 

Solution

  1. Connect the machine to internet and retry will resolve the issue.

  2. Otherwise if you are upgrading the IAS, run the setup from command line with /FORCE option.
    Select Yes when the setup ask "Unexpected error. Unable to install Windows Server 201X roles and features... You can skip this operation and continue anyway. Proceed?"

  3. If you are installing IAS, download the zip attachment.
    In PowerShell (as Administrator) run the command (according to operating system version):

installRolesAndFeaturesOneByOne.ps1 -configurationFile .\rolesFeaturesWindowsServer2012R1.txt 

or

installRolesAndFeaturesOneByOne.ps1 -configurationFile .\rolesFeaturesWindowsServer2012R2.txt

or

installRolesAndFeaturesOneByOne.ps1 -configurationFile .\rolesFeaturesWindowsServer2016.txt

and then run the setup from command line with /FORCE option.

FeaturesAndRolesOneByOne.zip

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.