Author Posts

July 14, 2016 at 4:03 pm

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

July 14, 2016 at 7:41 pm

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

July 15, 2016 at 7:30 am

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