Get-CMCollectionDependent

Get a collection's dependent relationships.

Syntax

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

Description

This cmdlet gets the target collection's dependent relationships. The target collection is a limiting collection for one or more other collections.

For more information, see View collection relationships.

Examples

Example 1: Get the collection relationships by pipeline object

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

Example 2: Get the collection relationships by ID

This example is functionally the same as the first, where the built-in All Users collection typically has ID SMS00002.

Get-CMCollectionDependent -Id "SMS00002"

Parameters

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Specify the ID of a collection to query. For example, "SMS00002".

Type:String
Aliases:CollectionId
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specify a collection object to query. To get this object, use the Get-CMCollection cmdlet.

Type:IResultObject
Aliases:Collection
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specify a collection name to query. For example, "All Users".

Type:String
Aliases:CollectionName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

System.Object