Background: I am trying to install Active Directory Domain Services inside of a Virtualbox instance of Windows Server 2012 R2, and have been unable to get the features installed via the GUI or Powershell in a normal scenario.
When I run Install-WindowsFeature AD-Domain-Services -IncludeManagementTools -Source @("wim:e:\sources\install.wim:2")
, eventually the command returns at 68% stating that it could not find the installation sources. However, on subsequent runs, the command succeeds and ADDS is available along with the associated cmdlets and management tools. I cannot find a reason to this rhyme for the life of me, what could be the issue? I have tried several forms of the command above, including specifying E:\sources\sxs
directly as well as omitting the -Source
parameter entirely.
While this does install ADDS on the target, I consider it a workaround having to run Install-WindowsFeature
twice, and would like to figure out how to find the root cause of the initial command failing. Also note that if I don't mount the installation ISO, it doesn't grab the sources from Windows Update, which is ideally how I'd like to install additional features.
EDIT The version is Windows Server 2012 R2 Standard.