共用方式為


Get-CMCollectionDependency

取得目標集合的限制集合。

語法

Get-CMCollectionDependency
   -Name <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMCollectionDependency
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMCollectionDependency
   -InputObject <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

此 Cmdlet 會取得Configuration Manager集合的限制集合。 除了 [所有系統 ] 和 [ 所有使用者] 和 [使用者群組 ] 集合之外,所有集合都有限制其成員資格的父集合。 限制集合會建立您可以使用成員資格規則新增至這個集合的資源。

如需詳細資訊,請 參閱檢視集合關聯性

範例

範例 1:依管線物件取得限制集合

Get-CMCollection -Name "All Users" | Get-CMCollectionDependency

範例 2:依識別碼取得限制集合

此範例的功能與第一個範例相同,其中內建的 [所有使用者 ] 集合通常具有 識別碼 SMS00002

Get-CMCollectionDependency -Id "SMS00002"

參數

-DisableWildcardHandling

此參數會將萬用字元視為常值字元值。 您無法將其與 ForceWildcardHandling結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ForceWildcardHandling

此參數會處理萬用字元,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Id

指定要查詢之集合的識別碼。 例如,"SMS00002"

類型:String
別名:CollectionId
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-InputObject

指定要查詢的集合物件。 若要取得此物件,請使用 Get-CMCollection Cmdlet。

類型:IResultObject
別名:Collection
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

指定要查詢的集合名稱。 例如,"All Users"

類型:String
別名:CollectionName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

輸出

System.Object