Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-3239

DSC - "specified ProductId and/or Name does not match" error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • puppet_agent 1.0.0
    • None
    • dsc
    • PE 3.8.1 (RHEL 6)
      Agent: Windows 2012 R2
      dsc Version: 1.0.0

    Description

      Hello I'm opening this ticket for support and to find out if there is a bug that needs to be addressed.

      In our puppet runs we're seeing these errors and warnings:

      Error: /Stage[main]/core::Win_microsoft_sccm/Dsc_xpackage[Configuration Manager Client]/ensure: change from absent to present failed: PowerShell DSC resource MSFT_xPackageResource failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: Package from C:\ProgramData\Applications\SCCM_Client\ccmsetup.exe was installed, but the specified ProductId and/or Name does not match package details

      Package Resource:
      dsc_xPackage { 'Configuration Manager Client':
      dsc_ensure => 'Present',
      dsc_name => 'Configuration Manager Client',
      dsc_path => 'C:\ProgramData\Applications\SCCM_Client\ccmsetup.exe',
      dsc_productid => '2609EDF1-34C4-4B03-B634-55F3B3BC4931',
      dsc_arguments => "smssitecode=${smssitecode} smsslp=${smsslp} ccmhttpport=${ccmhttpport} RESETKEYINFORMATION=TRUE",
      dsc_returncode => [0, 3010],
      }

      The above resource continues to raise errors that the package name and product id does not match. I suspect the .exe is returning a blank for both and the resource type cannot match.

      Error: PowerShell DSC resource MSFT_xPackageResource failed to execute Set-TargetResource functionality with error message: System.InvalidOperationException: Package from C:\ProgramData\Applications\SCCM_Client\ccmsetup.exe was installed, but the specified ProductId and/or Name does not match package details

      Also, the return code 3010 is in the list of expected codes, but we continue to see this warning.

      Warning: No reboot resource found in the graph that has 'dsc_reboot' as its name. Cannot signal reboot to Puppet.
      Warning: No reboot resource found in the graph that has 'dsc_reboot' as its name. Cannot signal reboot to Puppet.

      Please advise on any direction I should follow to resolve these errors.

      We are running PE 3.8.1 on RHEL 6.5. Agent running on Windows 2012R2.

      Thank you
      Ankur

      Attachments

        Activity

          People

            Unassigned Unassigned
            apatel29 Ankur Patel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support