This issue was imported from CodePlex
photoadrian wrote 2014-07-10 at 20:25
Command:
Install-LabWindowsFeature -Name MEMBER1 -FeatureName RSAT, GPMC, RSAT-DHCP, RSAT-DNS-Server
MEMBER1 is a SERVER2012R2DATACENTER statically configured. Error returned is:
VERBOSE: Starting Installation Activity ''
VERBOSE: Credentials prepared for user 'winfra.local\Administrator'
VERBOSE: Creating session to computer 'MEMBER1'
VERBOSE: New-LWPSSession Entering... (ComputerName=MEMBER1,Credential=System.Management.Automation.PSCredential)
VERBOSE: Session to computer 'MEMBER1' created
VERBOSE: New-LWPSSession...leaving - return value is '[PSSession]Session7'
VERBOSE: The Output of the task on machine 'MEMBER1' will be available in the variable 'a7b8f16f-2cbd-4ac5-a696-e76aa8a923d0'
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 downloaded.
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
http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
+ PSComputerName : MEMBER1
VERBOSE: Session closed
VERBOSE: Finished Installation Activity ''
Need to understand which role/feature was not installed. Also, these are standard features, so why the problem?
raandree wrote 2014-07-10 at 20:51
Just tested this and the result is fine. Also the dynamic variable shows that the installation went well.
What is the operating system of MEMBER1?
VERBOSE: OS ISO mounted on drive letter 'F:'
VERBOSE: Dism PowerShell Cmdlets Version 6.3.0.0
VERBOSE: The Windows Image list contains 2 items
VERBOSE: Dismounting ISO
VERBOSE: Get-LWImageOperatingSystemList...leaving - return value is '2'
VERBOSE: Get-LabAvailableOperatingSystems...leaving.
VERBOSE: Invoke-LWPostInstallationActivity Entering...
(UserName=test.net\administrator,ComputerName=KerbWeb0,Password=Password0,IsoImagePath=E:\LabSources\ISOs\en_windows_server_2012_r2_x64_dvd_2707946.i
so,ScriptBlock=Install-WindowsFeature RSAT, GPMC, RSAT-DHCP, RSAT-DNS-Server -Source d:\sources\sxs -IncludeAllSubFeature)
VERBOSE: Starting Installation Activity ''
VERBOSE: Credentials prepared for user 'test.net\administrator'
VERBOSE: Creating session to computer 'KerbWeb0'
VERBOSE: New-LWPSSession Entering... (ComputerName=KerbWeb0,Credential=System.Management.Automation.PSCredential)
VERBOSE: Session to computer 'KerbWeb0' created
VERBOSE: New-LWPSSession...leaving - return value is '[PSSession]Session1'
VERBOSE: The Output of the task on machine 'KerbWeb0' will be available in the variable '292c4435-a18b-44a5-8eb5-7ea128b52be5'
VERBOSE: Session closed
VERBOSE: Finished Installation Activity ''
VERBOSE: Invoke-LWPostInstallationActivity...leaving - return value is 'System.Management.Automation.PSVariable'
VERBOSE: Install-LabWindowsFeature...leaving.
PS C:\Users\Raimund\Dropbox\Desktop> (Get-Variable 292c4435-a18b-44a5-8eb5-7ea128b52be5).Value
PSComputerName : KerbWeb0
RunspaceId : 4a022da7-d16f-42a8-8a2a-9371a0781acd
Success : True
RestartNeeded : No
FeatureResult : {RAS Connection Manager Administration Kit (CMAK), Group Policy Management, Hyper-V Module for Windows PowerShell, Hyper-V GUI
ExitCode : Success
photoadrian wrote 2014-07-10 at 21:53
OS is SERVER2012R2DATACENTER
I will re-test and update.