Configmgr Add-CMScriptDeploymentType -AddRequirement

This topic contains 2 replies, has 2 voices, and was last updated by  Jens Helmer Lund 1 year, 10 months ago.

  • Author
  • #46983

    Jens Helmer Lund

    I am starting to create a script to add CM (CB1602) applications into ConfigMgr, it seems to work fine, but I need to have a requirement on the deploymenttype. In the GUI it will be Operating system –> one of –> Windows 10 x64

    I have found the parameter -AddRequirement, but i cannot figure out how to add values. show-command says it is a Type:Microsoft.SystemsManagementServer.DesiredConfigurationManagement.Rules.Rule[].
    I cannot find any useful documentation on this switch.

    Have any of you played around with this?

    Thank you in advance

  • #47007

    Jonathan Warnken

    I have not and I would have thought it would be similar to how you have to create a schedule with new-cmschedule and apply it your collection or deployments. But it does not appear to be that way. See these examples
    Constructing SCCM Rules with PowerShell

  • #47037

    Jens Helmer Lund

    Hi Jonathan
    Thank you for the links, it worked like a charm


You must be logged in to reply to this topic.