Export (0) Print
Expand All
Expand Minimize

Get-CMDeviceCollectionVariable

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Get-CMDeviceCollectionVariable

Gets the task sequence variables for a device collection in the Configuration Manager hierarcy.

Syntax

Parameter Set: SearchByNameMandatory
Get-CMDeviceCollectionVariable -CollectionName <String> -VariableName <String> [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMDeviceCollectionVariable -CollectionId <String> -VariableName <String> [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Get-CMDeviceCollectionVariable -Collection <IResultObject> -VariableName <String> [ <CommonParameters>]




Detailed Description

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

Task sequence variables are a set of name and value pairs that provide a mechanism to configure and customize the steps of a task sequence when the task sequence is deployed to a specific collection. For more information about task sequence variables, see Planning a Task Sequence Strategy in Configuration Manager.

Parameters

-Collection<IResultObject>

Specifies a Configuration Manager user collection object. To obtain a user collection object, use the Get-CMUserCollection cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionId<String>

Specifies the ID of the device collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-CollectionName<String>

Specifies the name of the device collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-VariableName<String>

Specifies the name of the variable. If you do not specify this parameter, the cmdlet returns all the variables for the collection.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get task sequence variables for all device collections

This command gets the task sequence variables for all device collections.


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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft