Configmgr Add-CMScriptDeploymentType -AddRequirement

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Jens Helmer Lund Jens Helmer Lund 2 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46983
    Profile photo of Jens Helmer Lund
    Jens Helmer Lund
    Participant

    Hi
    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
    Jens

    #47007
    Profile photo of Jonathan Warnken
    Jonathan Warnken
    Participant

    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

    https://powershell.org/forums/topic/help-me-understand-how-this-works/
    Constructing SCCM Rules with PowerShell

    #47037
    Profile photo of Jens Helmer Lund
    Jens Helmer Lund
    Participant

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

    /Jens

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.