Szukaj na tym blogu

czwartek, 17 marca 2016

SCCM create collection using PowerShell

New-CMDeviceCollection -Name "TestMAC" -LimitingCollectionName "All Systems"

$q1='SELECT SMS_R_System.Name, SMS_R_System.MACAddresses FROM  SMS_R_System WHERE SMS_R_System.MACAddresses="00:12:5f:0e:b3:10"'

Add-CMDeviceCollectionQueryMembershipRule -CollectionName "testMAC" -RuleName "q1" -QueryExpression $q1

Invoke-CMDeviceCollectionUpdate -CollectionId


Brak komentarzy:

Prześlij komentarz