Configuration manager – New-CMProgram

Welcome Forums DSC (Desired State Configuration) Configuration manager – New-CMProgram

Viewing 2 reply threads
  • Author
    Posts
    • #104767
      Participant
      Topics: 2
      Replies: 2
      Points: 0
      Rank: Member

      Hello guys,

      Hope you can direct me to a good place, cause i am pretty lost.

      I have Configuration manager current branch.
      I created a package and a program with powershell and i need to choose specific platforms in the program.

      For instance: All windows 7 x64 and All windows 7 x86

      One of the New-CMProgram parameters is:
      [-AddSupportedOperatingSystemPlatform ] IResultObject
      and i don’t know what IResultObject means 🙁

      i have tried to do the following in order to understands how powershell saves this kind of information:

      And this is what is got:

      What can i do with this info?

      Thank you so much for helping.
      Amir

    • #104860
      Participant
      Topics: 0
      Replies: 44
      Points: 46
      Rank: Member

      The IResultObject is looking for an object of a specific class. In this case, SMS_SupportedPlatform, which is different from the SMS_OS_Details that returns with your $pkg.SupportedOperatingSystems.

      To find the SMS_SupportedPlatform, use Get-CMSupportedPlatform. This will list all available platforms, and you will need to find the one you need and either use it like a parameter -AddSupportedOperatingSystemPlatform (Get-CMSupportedPlatform -Name “xxxxx”) or store it in variable, then use that variable inline.

    • #104936
      Participant
      Topics: 2
      Replies: 2
      Points: 0
      Rank: Member

      Thank you so much for helping.
      I will take it from here and see what can i do with the new info you provided.

      Have a nice day 🙂

      Amir

Viewing 2 reply threads
  • The topic ‘Configuration manager – New-CMProgram’ is closed to new replies.