To install the role using PowerShell, use these steps. PowerShell must be run using Administrator rights. Installing IIS and all subfeatures can be run in 2 commands:
Import-module servermanager Add-windowsfeature web-server –includeallsubfeature
To install the role using Server Manager, follow these steps: