Get-CMDeviceCollectionVariable

Gets a device collection variable.

Syntax

Get-CMDeviceCollectionVariable
   -Collection <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-VariableName <String>]
   [<CommonParameters>]
Get-CMDeviceCollectionVariable -CollectionId  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-VariableName ] []
Get-CMDeviceCollectionVariable -CollectionName  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-VariableName ] []

Description

The Get-CMDeviceCollectionVariable cmdlet gets the task sequence variables for a device collection.

Examples

Example 1: Get a device collection variable by name

PS C:\> Get-CMDeviceCollectionVariable -CollectionName "DeviceCollection02" -VariableName "testTS"

This command gets the collection variable named testTS for the device collection named Device.

Required Parameters

-Collection

Specifies a device collection object. To obtain a collection object, use the Get-CMCollection cmdlet.

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

Specifies the ID of a device collection.

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

Specifies the name of a device collection.

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

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

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

Indicates that wildcard handling is enabled.

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

Specifies the name of a collection variable.

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