Install-WindowsFeature failing to find source

C

CVDale

Hello, Everyone.

I am building a new 2016 OS template and have removed the feature payload from the server. When testing this out to make sure we can install the roles and features on demand, it fails. I have tried everything I can think of, searched all over the place and everything says the same thing - which I've tried and failed at. So I apparently need a second set of eyes on this to see what I'm doing wrong.

When I use this "install-windowsfeature Web-WebServer -Source wim:Z:\...\2016\sources\install.wim:4" I get this error in return:

====================
install-windowsfeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more
information on specifying a source location, see Configure a Windows Repair Source. Error: 0x800f081f
At line:1 char:1
+ install-windowsfeature Web-ASP -Source wim:Z:\...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:pSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand

===================

I have tried every iteration I can think of to get that to work. Returns the same error every time.

But, if I use DISM to enable the same feature or role, using the exact same path or shortening the path (if I'm mapped to the source location already), it works flawlessly. Here's an example:

===================

dism /online /enable-feature /featurename:IIS-Webserverrole /source:wim:install.wim:4

Deployment Image Servicing and Management tool
Version: 10.0.14393.0

Image Version: 10.0.14393.0

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

================

So, what am I missing?

TIA!



::- T.I.A. -::

Continue reading...
 
Back
Top Bottom