Export (0) Print
Expand All
Expand Minimize

Get-CMTaskSequence

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

Get-CMTaskSequence

Gets Configuration Manager task sequences.

Syntax

Parameter Set: SearchByName
Get-CMTaskSequence [-Name <String> ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMTaskSequence -TaskSequencePackageId <String[]> [-SecuredScopeNames <String> ] [ <CommonParameters>]




Detailed Description

The Get-CMTaskSequence cmdlet gets Microsoft System Center 2012 Configuration Manager task sequences. A task sequence includes configuration and operating system deployment settings for a System Center 2012 Configuration Manager client computer.

You can specify a name or ID to get a specific sequence. You can also specify a security scope, by itself or with a name or ID, to get sequences with that security scope.

Parameters

-Name<String>

Specifies a name for a task sequence.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecuredScopeNames<String>

Specifies a name of a security scope.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-TaskSequencePackageId<String[]>

Specifies an array of IDs of task sequences.


Aliases

PackageId

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 sequences

This command gets all task sequence objects for the current System Center 2012 Configuration Manager.


PS C:\> Get-CMTaskSequence

Example 2: Get a task sequence by using a ID

This command gets the task sequence that has an ID of CM100015.


PS C:\> Get-CMTaskSequence -Id "CM100015"

Example 3: Get task sequence by using a name

This command gets the task sequence named General Sequence if it belongs to the security scope called Scope22. A task sequence can belong to more than one security scope.


PS C:\> Get-CMTaskSequence -Name "General Sequence" -SecuredScopeNames "Scope22"

Related topics

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