Update-SCSMPortalDeploymentProcess
Update-SCSMPortalDeploymentProcess
Updates the properties of software deployment processes for the Self-Service Portal.
構文
Parameter Set: Default
Update-SCSMPortalDeploymentProcess [-DeploymentProcess] <EnterpriseManagementInstance[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Update-SCSMPortalDeploymentProcess cmdlet updates the properties of software deployment processes for the Self-Service Portal.
パラメーター
-DeploymentProcess<EnterpriseManagementInstance[]>
Specifies an object that represents a software deployment process. This is returned by the Get-SCSMPortalDeploymentProcess cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-PassThru
Specifies the output object that represents the Self-Service Portal software deployment process to update. This output object can be passed to other cmdlets.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.EnterpriseManagement.Core.Cmdlets.Instances.EnterpriseManagementInstance
You can pipe a software deployment process to the DeploymentProcess parameter. You can use the Get-SCSMPortalDeploymentProcess cmdlet to retrieve instances of deployment processes.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
None.
This cmdlet does not generate any output.
例
Example 1: Change the Self-Service Portal software deployment process
The first command gets a process that has the display name Process01, and assigns it to the $Process variable.
The second command displays the contents of $Process.
The third command gets a template by using the Get-SCSMObjectTemplate cmdlet, and then stores it in the $Template variable.
The fourth and fifth commands assign new values for the ChangeRequestTemplateId and ChangeRequestTemplateName of $Process.
The final command updates the template to the current value of $Process.
PS C:\>$Process = Get-SCSMPortalDeploymentProcess | Where-Object {$_.displayname -eq "Process01"}
PS C:\> $Process
PS C:\> $Template = Get-SCSMObjectTemplate -Name "MinorChangeRequest"
PS C:\> $Process.ChangeRequestTemplateId = $Template.Id
PS C:\> $Process.ChangeRequestTemplateName = $Template.Name
PS C:\> Update-SCSMPortalDeploymentProcess -DeploymentProcess $Process
関連トピック
Get-SCSMPortalDeploymentProcess