DISMAPI_Error__Failed_To_Enable_Updates When Attempting Install-WindowsFeature AD-Domain-Services On WindowsCore Container

-1

My question is most similar to this Is it possible to add Active Directory to a windows container? however I am getting a different error.

My Error is:

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 http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
At line:1 char:1
+ Install-WindowsFeature AD-Domain-Services
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

My Docker File is:

FROM microsoft/windowsservercore:1909

RUN powershell Get-WindowsFeature
RUN powershell -Command Add-WindowsFeature AD-Domain-Services 

Here is the output of Get-WindowsFeature:

Display Name                                            Name                       Install State
------------                                            ----                       -------------
[ ] Active Directory Certificate Services               AD-Certificate                   Removed
    [ ] Certification Authority                         ADCS-Cert-Authority              Removed
    [ ] Certificate Enrollment Policy Web Service       ADCS-Enroll-Web-Pol              Removed
    [ ] Certificate Enrollment Web Service              ADCS-Enroll-Web-Svc              Removed
    [ ] Certification Authority Web Enrollment          ADCS-Web-Enrollment              Removed
    [ ] Network Device Enrollment Service               ADCS-Device-Enrollment           Removed
    [ ] Online Responder                                ADCS-Online-Cert                 Removed
[ ] Active Directory Domain Services                    AD-Domain-Services               Removed
[ ] Active Directory Federation Services                ADFS-Federation                  Removed
[ ] Active Directory Lightweight Directory Services     ADLDS                            Removed
[ ] Active Directory Rights Management Services         ADRMS                            Removed
    [ ] Active Directory Rights Management Server       ADRMS-Server                     Removed
    [ ] Identity Federation Support                     ADRMS-Identity                   Removed
[ ] Device Health Attestation                           DeviceHealthAttestat...          Removed
[ ] DHCP Server                                         DHCP                           Available
[ ] DNS Server                                          DNS                            Available
[X] File and Storage Services                           FileAndStorage-Services        Installed
    [ ] File and iSCSI Services                         File-Services                    Removed
        [ ] File Server                                 FS-FileServer                    Removed
        [ ] BranchCache for Network Files               FS-BranchCache                   Removed
        [ ] Data Deduplication                          FS-Data-Deduplication            Removed
        [ ] DFS Namespaces                              FS-DFS-Namespace                 Removed
        [ ] DFS Replication                             FS-DFS-Replication               Removed
        [ ] File Server Resource Manager                FS-Resource-Manager              Removed
        [ ] File Server VSS Agent Service               FS-VSS-Agent                     Removed
        [ ] iSCSI Target Server                         FS-iSCSITarget-Server            Removed
        [ ] iSCSI Target Storage Provider (VDS and V... iSCSITarget-VSS-VDS              Removed
        [ ] Server for NFS                              FS-NFS-Service                   Removed
        [ ] Work Folders                                FS-SyncShareService              Removed
    [X] Storage Services                                Storage-Services               Installed
[ ] Host Guardian Service                               HostGuardianServiceRole          Removed
[ ] Hyper-V                                             Hyper-V                          Removed
[ ] Print and Document Services                         Print-Services                   Removed
    [ ] Print Server                                    Print-Server                     Removed
    [ ] LPD Service                                     Print-LPD-Service                Removed
[ ] Remote Access                                       RemoteAccess                     Removed
    [ ] DirectAccess and VPN (RAS)                      DirectAccess-VPN                 Removed
    [ ] Routing                                         Routing                          Removed
    [ ] Web Application Proxy                           Web-Application-Proxy            Removed
[ ] Remote Desktop Services                             Remote-Desktop-Services          Removed
    [ ] Remote Desktop Licensing                        RDS-Licensing                    Removed
[ ] Volume Activation Services                          VolumeActivation                 Removed
[ ] Web Server (IIS)                                    Web-Server                     Available
    [ ] Web Server                                      Web-WebServer                  Available
        [ ] Common HTTP Features                        Web-Common-Http                Available
            [ ] Default Document                        Web-Default-Doc                Available
            [ ] Directory Browsing                      Web-Dir-Browsing               Available
            [ ] HTTP Errors                             Web-Http-Errors                Available
            [ ] Static Content                          Web-Static-Content             Available
            [ ] HTTP Redirection                        Web-Http-Redirect              Available
            [ ] WebDAV Publishing                       Web-DAV-Publishing             Available
        [ ] Health and Diagnostics                      Web-Health                     Available
            [ ] HTTP Logging                            Web-Http-Logging               Available
            [ ] Custom Logging                          Web-Custom-Logging             Available
            [ ] Logging Tools                           Web-Log-Libraries              Available
            [ ] ODBC Logging                            Web-ODBC-Logging               Available
            [ ] Request Monitor                         Web-Request-Monitor            Available
            [ ] Tracing                                 Web-Http-Tracing               Available
        [ ] Performance                                 Web-Performance                Available
            [ ] Static Content Compression              Web-Stat-Compression           Available
            [ ] Dynamic Content Compression             Web-Dyn-Compression            Available
        [ ] Security                                    Web-Security                   Available
            [ ] Request Filtering                       Web-Filtering                  Available
            [ ] Basic Authentication                    Web-Basic-Auth                 Available
            [ ] Centralized SSL Certificate Support     Web-CertProvider               Available
            [ ] Client Certificate Mapping Authentic... Web-Client-Auth                Available
            [ ] Digest Authentication                   Web-Digest-Auth                Available
            [ ] IIS Client Certificate Mapping Authe... Web-Cert-Auth                  Available
            [ ] IP and Domain Restrictions              Web-IP-Security                Available
            [ ] URL Authorization                       Web-Url-Auth                   Available
            [ ] Windows Authentication                  Web-Windows-Auth               Available
        [ ] Application Development                     Web-App-Dev                    Available
            [ ] .NET Extensibility 3.5                  Web-Net-Ext                    Available
            [ ] .NET Extensibility 4.8                  Web-Net-Ext45                  Available
            [ ] Application Initialization              Web-AppInit                    Available
            [ ] ASP                                     Web-ASP                        Available
            [ ] ASP.NET 3.5                             Web-Asp-Net                    Available
            [ ] ASP.NET 4.8                             Web-Asp-Net45                  Available
            [ ] CGI                                     Web-CGI                        Available
            [ ] ISAPI Extensions                        Web-ISAPI-Ext                  Available
            [ ] ISAPI Filters                           Web-ISAPI-Filter               Available
            [ ] Server Side Includes                    Web-Includes                   Available
            [ ] WebSocket Protocol                      Web-WebSockets                 Available
    [ ] FTP Server                                      Web-Ftp-Server                 Available
        [ ] FTP Service                                 Web-Ftp-Service                Available
        [ ] FTP Extensibility                           Web-Ftp-Ext                    Available
    [ ] Management Tools                                Web-Mgmt-Tools                 Available
        [ ] IIS Management Console                      Web-Mgmt-Console               Available
        [ ] IIS 6 Management Compatibility              Web-Mgmt-Compat                Available
            [ ] IIS 6 Metabase Compatibility            Web-Metabase                   Available
            [ ] IIS 6 Scripting Tools                   Web-Lgcy-Scripting             Available
            [ ] IIS 6 WMI Compatibility                 Web-WMI                        Available
        [ ] IIS Management Scripts and Tools            Web-Scripting-Tools            Available
        [ ] Management Service                          Web-Mgmt-Service               Available
[ ] Windows Deployment Services                         WDS                            Available
    [ ] Transport Server                                WDS-Transport                  Available
[ ] Windows Server Update Services                      UpdateServices                   Removed
    [ ] WID Connectivity                                UpdateServices-WidDB             Removed
    [ ] WSUS Services                                   UpdateServices-Services          Removed
    [ ] SQL Server Connectivity                         UpdateServices-DB                Removed
[ ] .NET Framework 3.5 Features                         NET-Framework-Features         Available
    [ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0)  NET-Framework-Core               Removed
    [ ] HTTP Activation                                 NET-HTTP-Activation            Available
    [ ] Non-HTTP Activation                             NET-Non-HTTP-Activ             Available
[X] .NET Framework 4.8 Features                         NET-Framework-45-Fea...        Installed
    [X] .NET Framework 4.8                              NET-Framework-45-Core          Installed
    [ ] ASP.NET 4.8                                     NET-Framework-45-ASPNET        Available
    [X] WCF Services                                    NET-WCF-Services45             Installed
        [ ] HTTP Activation                             NET-WCF-HTTP-Activat...        Available
        [ ] Message Queuing (MSMQ) Activation           NET-WCF-MSMQ-Activat...        Available
        [ ] Named Pipe Activation                       NET-WCF-Pipe-Activat...        Available
        [ ] TCP Activation                              NET-WCF-TCP-Activati...        Available
        [X] TCP Port Sharing                            NET-WCF-TCP-PortShar...        Installed
[ ] Background Intelligent Transfer Service (BITS)      BITS                             Removed
    [ ] IIS Server Extension                            BITS-IIS-Ext                     Removed
    [ ] Compact Server                                  BITS-Compact-Server              Removed
[ ] BitLocker Drive Encryption                          BitLocker                        Removed
[ ] BranchCache                                         BranchCache                      Removed
[ ] Client for NFS                                      NFS-Client                       Removed
[ ] Containers                                          Containers                       Removed
[ ] Data Center Bridging                                Data-Center-Bridging             Removed
[ ] Enhanced Storage                                    EnhancedStorage                  Removed
[ ] Failover Clustering                                 Failover-Clustering              Removed
[ ] Group Policy Management                             GPMC                             Removed
[ ] Host Guardian Hyper-V Support                       HostGuardian                     Removed
[ ] I/O Quality of Service                              DiskIo-QoS                       Removed
[ ] IIS Hostable Web Core                               Web-WHC                        Available
[ ] IP Address Management (IPAM) Server                 IPAM                             Removed
[ ] iSNS Server service                                 ISNS                             Removed
[ ] Management OData IIS Extension                      ManagementOdata                Available
[ ] Media Foundation                                    Server-Media-Foundation          Removed
[ ] Message Queuing                                     MSMQ                           Available
    [ ] Message Queuing Services                        MSMQ-Services                  Available
        [ ] Message Queuing Server                      MSMQ-Server                    Available
        [ ] Directory Service Integration               MSMQ-Directory                 Available
        [ ] HTTP Support                                MSMQ-HTTP-Support              Available
        [ ] Message Queuing Triggers                    MSMQ-Triggers                  Available
        [ ] Routing Service                             MSMQ-Routing                   Available
    [ ] Message Queuing DCOM Proxy                      MSMQ-DCOM                      Available
[ ] Multipath I/O                                       Multipath-IO                     Removed
[ ] Network Load Balancing                              NLB                              Removed
[ ] Network Virtualization                              NetworkVirtualization            Removed
[ ] Peer Name Resolution Protocol                       PNRP                             Removed
[ ] Quality Windows Audio Video Experience              qWave                            Removed
[ ] Remote Differential Compression                     RDC                              Removed
[ ] Remote Server Administration Tools                  RSAT                           Available
    [ ] Feature Administration Tools                    RSAT-Feature-Tools               Removed
        [ ] BitLocker Drive Encryption Administratio... RSAT-Feature-Tools-B...          Removed
        [ ] DataCenterBridging LLDP Tools               RSAT-DataCenterBridg...          Removed
        [ ] Failover Clustering Tools                   RSAT-Clustering                  Removed
            [ ] Failover Cluster Module for Windows ... RSAT-Clustering-Powe...          Removed
            [ ] Failover Cluster Automation Server      RSAT-Clustering-Auto...          Removed
            [ ] Failover Cluster Command Interface      RSAT-Clustering-CmdI...          Removed
        [ ] IP Address Management (IPAM) Client         IPAM-Client-Feature              Removed
        [ ] Shielded VM Tools                           RSAT-Shielded-VM-Tools           Removed
        [ ] Storage Migration Service Tools             RSAT-SMS                         Removed
        [ ] Storage Replica Module for Windows Power... RSAT-Storage-Replica             Removed
        [ ] System Insights Module for Windows Power... RSAT-System-Insights             Removed
    [ ] Role Administration Tools                       RSAT-Role-Tools                Available
        [ ] AD DS and AD LDS Tools                      RSAT-AD-Tools                  Available
            [ ] Active Directory module for Windows ... RSAT-AD-PowerShell             Available
            [ ] AD DS Tools                             RSAT-ADDS                      Available
                [ ] Active Directory Administrative ... RSAT-AD-AdminCenter            Available
                [ ] AD DS Snap-Ins and Command-Line ... RSAT-ADDS-Tools                Available
            [ ] AD LDS Snap-Ins and Command-Line Tools  RSAT-ADLDS                     Available
        [ ] Hyper-V Management Tools                    RSAT-Hyper-V-Tools             Available
            [ ] Hyper-V Module for Windows PowerShell   Hyper-V-PowerShell             Available
        [ ] Windows Server Update Services Tools        UpdateServices-RSAT            Available
            [ ] API and PowerShell cmdlets              UpdateServices-API             Available
        [ ] DHCP Server Tools                           RSAT-DHCP                      Available
        [ ] DNS Server Tools                            RSAT-DNS-Server                Available
        [ ] Remote Access Management Tools              RSAT-RemoteAccess                Removed
            [ ] Remote Access module for Windows Pow... RSAT-RemoteAccess-Po...          Removed
[ ] RPC over HTTP Proxy                                 RPC-over-HTTP-Proxy            Available
[ ] Setup and Boot Event Collection                     Setup-and-Boot-Event...          Removed
[ ] Simple TCP/IP Services                              Simple-TCPIP                   Available
[ ] SMB 1.0/CIFS File Sharing Support                   FS-SMB1                        Available
    [ ] SMB 1.0/CIFS Client                             FS-SMB1-CLIENT                 Available
    [ ] SMB 1.0/CIFS Server                             FS-SMB1-SERVER                   Removed
[ ] SMB Bandwidth Limit                                 FS-SMBBW                       Available
[ ] SNMP Service                                        SNMP-Service                     Removed
    [ ] SNMP WMI Provider                               SNMP-WMI-Provider                Removed
[ ] Software Load Balancer                              SoftwareLoadBalancer             Removed
[ ] Storage Migration Service                           SMS                            Available
[ ] Storage Migration Service Proxy                     SMS-Proxy                      Available
[ ] Storage Replica                                     Storage-Replica                  Removed
[X] System Data Archiver                                System-DataArchiver            Installed
[ ] System Insights                                     System-Insights                Available
[ ] Telnet Client                                       Telnet-Client                  Available
[ ] VM Shielding Tools for Fabric Management            FabricShieldedTools            Available
[ ] Windows Defender Antivirus                          Windows-Defender                 Removed
[ ] Windows Internal Database                           Windows-Internal-Dat...        Available
[X] Windows PowerShell                                  PowerShellRoot                 Installed
    [X] Windows PowerShell 5.1                          PowerShell                     Installed
    [ ] Windows PowerShell 2.0 Engine                   PowerShell-V2                    Removed
    [ ] Windows PowerShell Desired State Configurati... DSC-Service                    Available
    [ ] Windows PowerShell Web Access                   WindowsPowerShellWeb...        Available
[ ] Windows Process Activation Service                  WAS                            Available
    [ ] Process Model                                   WAS-Process-Model              Available
    [ ] .NET Environment 3.5                            WAS-NET-Environment            Available
    [ ] Configuration APIs                              WAS-Config-APIs                Available
[ ] Windows Server Backup                               Windows-Server-Backup            Removed
[ ] Windows Server Migration Tools                      Migration                        Removed
[ ] Windows Standards-Based Storage Management          WindowsStorageManage...          Removed
[ ] Windows Subsystem for Linux                         Microsoft-Windows-Su...          Removed
[ ] WinRM IIS Extension                                 WinRM-IIS-Ext                  Available
[ ] WINS Server                                         WINS                             Removed
[X] WoW64 Support                                       WoW64-Support                  Installed

Note the Removed state on AD-Domain-Services which would indicate the need to provide a source.

I downloaded en_windows_server_version_1909_updated_april_2020_x64_dvd_c2324f4e.iso from MSDN and dumped the ISO contents into a readable directory then exposed it to Docker using docker run -it -v S:\WindowsInstall:C:\WinInstall 2d9bf0ac7150 powershell

Once that was done I attempted to install the feature using the following variations, all with no luck and the same error message (with the exception of -Source argument changing):

  1. Install-WindowsFeature AD-Domain-Services -Source wim:c:/wininstall/sources/install.wim:1
  2. Install-WindowsFeature AD-Domain-Services -Source C:\wininstall\
  3. Install-WindowsFeature AD-Domain-Services -Source C:\wininstall\sources\
  4. Install-WindowsFeature AD-Domain-Services -Source C:\wininstall\sources\sxs\

Any ideas?

active-directory
docker
containers
windows-server-core
asked on Server Fault Jan 12, 2021 by aolszowka

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0