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

xSCCMInstall ProductName for Config Mgr 2002 ProductName change #65

Closed jeffotterpohl closed 4 years ago

jeffotterpohl commented 4 years ago

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

Installing Config Mgr 2002 using the xSCCMInstall module it fails to detect the product is installed. changing the productName to as follows works correctly.
$productName = 'Microsoft Endpoint Configuration Manager Central Administration Site Setup'

Verbose logs showing the problem

Suggested solution to the issue

possible solution add a version check and change the associated ProductName as needed according to the version of Config Mgr.

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

xSccmInstall SccmInstall
{
    SetupExePath = C:\Temp
    IniFile = C:\temp\Cas.ini
    SCCMServerType = 'CAS'
}

The operating system the target node is running

Version and build of PowerShell the target node is running

Version of the DSC module that was used

0.2.0