dsccommunity / ConfigMgrCBDsc

This module contains DSC resources for the management and configuration of Microsoft System Center Configuration Manager Current Branch (ConfigMgrCB).
MIT License
27 stars 8 forks source link

CMIniFile: Missing parameter for DistributionPointInstallIIS #62

Closed ericscheffler closed 3 years ago

ericscheffler commented 4 years ago

Details of the scenario you tried and the problem that is occurring

When including the settings to install the distribution point role in the CMIniFile configuration, the DistributionPointInstallIIS setting is not currently implemented in the resource and appears to be required by the SCCM/MECM installer.

Verbose logs showing the problem

When running the SCCM CLI install without the DistributionPointInstallIIS option included in the .ini file, the messages below occur in the ConfigMgrSetupWizard log:

9/2/2020 2:04:57 PM: ConfigMgrSetupWizard Verbose: 1 : Scripted setup failure handling callback called. Failure: 103. 9/2/2020 2:05:08 PM: ConfigMgrSetupWizard Verbose: 1 : Received error [Could not connect or execute SQL query.] from native code. 9/2/2020 2:05:08 PM: ConfigMgrSetupWizard Verbose: 1 : Exiting SetupWPF.exe.

Suggested solution to the issue

Add boolean parameter for DistributionPointInstallIIS to CMIniFile resource if distribution point role is specified in the configuration

The DSC configuration that is used to reproduce the issue (as detailed as possible)


# insert configuration here
        # Provision .ini file
        CMIniFile AGMLabIni
        {
            IniFileName               = 'AGT-Lab-Pri.ini'
            IniFilePath               = $env:TEMP
            Action                    = 'InstallPrimarySite'
            ProductID                 = 'EVAL'
            SiteCode                  = 'AGT'
            SiteName                  = 'SCCM-Primary Site'
            SMSInstallDir             = "${disk}:\Program Files\Microsoft Configuration Manager"
            SDKServer                 = "$env:COMPUTERNAME.$DomainName"
            PreRequisiteComp          = $true
            PreRequisitePath          = "$path\SCCM\SCCMPrereqs"
            AdminConsole              = $true
            JoinCeip                  = $false
            MobileDeviceLanguage      = $false
            RoleCommunicationProtocol = 'HTTPorHTTPS'
            ClientsUsePKICertificate  = $false
            ManagementPoint           = "$env:COMPUTERNAME.$DomainName"
            ManagementPointProtocol   = 'HTTP'
            DistributionPoint         = "$env:COMPUTERNAME.$DomainName"
            DistributionPointProtocol = 'HTTP'
            SQLServerName             = "$sqlServer.$DomainName"
            DatabaseName              = "DB_Name"
            SQLSSBPort                = "4022"
            SQLLogFilePath            = 'S:\SQLLogs\'
            SQLDataFilePath           = 'S:\SQLDB\'
            CloudConnector            = $false
            CurrentBranch             = $true
            SAActive                  = $true
        }

#### The operating system the target node is running
OsName               : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsBuildLabEx    : 14393.3866.amd64fre.rs1_release.200805-1327
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

#### Version and build of PowerShell the target node is running
Name                           Value                                                                                              
----                           -----                                                                                              
PSVersion                      5.1.14393.3866                                                                                     
PSEdition                      Desktop                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                            
BuildVersion                   10.0.14393.3866                                                                                    
CLRVersion                     4.0.30319.42000                                                                                    
WSManStackVersion              3.0                                                                                                
PSRemotingProtocolVersion      2.3                                                                                                
SerializationVersion           1.1.0.1  

#### Version of the DSC module that was used
0.2.0
rchristman89 commented 3 years ago

@ericscheffler I updated and submitted a PR. If you want to pull the changes and test that would be appreciated.

ericscheffler commented 3 years ago

A bit late, but can confirm this issue is resolved.