Get-CMTaskSequence
Get-CMTaskSequence
Gets Configuration Manager task sequences.
構文
Parameter Set: SearchByName
Get-CMTaskSequence [-Name <String> ] [-SecuredScopeNames <String> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMTaskSequence -TaskSequencePackageId <String[]> [-SecuredScopeNames <String> ] [ <CommonParameters>]
詳細説明
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.
パラメーター
-Name<String>
Specifies a name for a task sequence.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SecuredScopeNames<String>
Specifies a name of a security scope.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-TaskSequencePackageId<String[]>
Specifies an array of IDs of task sequences.
エイリアス |
PackageId |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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"