IIS 7 and Above
Error Installing IIS In AWS
Last post Jun 29, 2018 03:46 PM by KatieWeaver
Jun 28, 2018 06:42 PM|KatieWeaver|LINK
I'm hitting a wall when trying to install IIS in Amazon Workspaces. When I try to add the feature through server manager, cmd, or powershell I get hit with error 0x80070002: "The system cannot find the file specified."
I've tried disabling the firewall, uninstalling IIS Express, and have tried different configurations and paths during installation and they all give the same result. There are also no old instances of IIS running that I am aware of that could be interfering
with with installation.
I don't have a lot of experience configuring IIS so I'm not sure if the inetpub folder should already exist or if it is created after the install, but it currently doesn't exist. From what I'm getting, it sounds like there is a file/folder missing but I'm
not sure what it is, or if that is the issue.
The AWS instance is running Windows Server 2016 Datacenter. Any help would be greatly appreciated! Thank you!
Jun 29, 2018 12:08 AM|terridonahue|LINK
How are you installing the feature, powershell, DISM, or Server Manager? With DISM, you can try Dism /online /Enable-Feature /FeatureName:IIS-WebServerRole /All. This will find the installation files online in case they aren't available on disk or
locally. To see the list of available features, run Dism /online /Get-Features. You can then check the log @ c:\windows\logs\DISM\dism.log to see what features you can install.
Jun 29, 2018 01:45 AM|deepakpanchal10|LINK
You had mentioned that,"The AWS instance is running Windows Server 2016 Datacenter."
First, You can try to open server manager and uncheck all the options for IIS.
If Inetpub folder is available then try to delete it.
Then try to restart the Windows Server 2016 Datacenter.
After restarting check and verify that IIS is not available on your system.
Then again try to reinstall the IIS from Server Manager.
It may help you to solve the error,"The system cannot find the file specified."
Also try to check for any pending updates for Windows Server 2016 Datacenter.
If you find any updates then try to install it first and then try to install the IIS.
Below is an alternative approach, That you can try to refer if above approach not work.
Installing a Windows Feature: IIS
Let us know, Whether it helps you to solve the issue or not.
We will try to provide further suggestions, If issue persist.
Jun 29, 2018 03:46 PM|KatieWeaver|LINK
Thanks to everyone who responded!
I ended up having to go through Powershell, but I did figure manage to find a solution.
From what I understand the UAC was causing issues since I was accessing AWS remotely even though I was running the console with admin privileges. I had to issue the command: "Start-Process Powershell.exe -Verb runAs" before going ahead with the Install-WindowsFeature