Remove-SCSMPortalDeploymentProcess

Remove-SCSMPortalDeploymentProcess

Removes a software deployment process from the Service Manager Self-Service Portal.

構文

Parameter Set: Default
Remove-SCSMPortalDeploymentProcess [-DeploymentProcess] <EnterpriseManagementInstance[]> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-SCSMPortalDeploymentProcess cmdlet removes a software deployment process from the Service Manager 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

-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 deployment process to the DeploymentProcess parameter. For example, the object returned by the Get-SCSMPortalDeploymentProcess cmdlet.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None.

    This cmdlet does not generate any output.

Example 1: Removed deployment processes by description

This command removes all deployment processes in which the description property matches the string 3. The command gets all deployment processes by using the Get-SCSMPortalDeploymentProcess cmdlet. The command passes the results to the Where-Object cmdlet by using the pipeline operator. That cmdlet passes on only the results that match the criteria to the current cmdlet. That cmdlet deletes each process.

PS C:\> Get-SCSMPortalDeploymentProcess | Where-Object { $_.description -match "3" } | Remove-SCSMPortalDeploymentProcess

Example 2: Remove all deployment processes

The first command gets all deployment processes by using Get-SCSMPortalDeploymentProcess, and then stores them in the $PortalDeployment variable.

The second command deletes all the deployment processes in $PortalDeployment.

PS C:\>$PortalDeployment = Get-SCSMPortalDeploymentProcess
PS C:\> Remove-SCSMPortalDeploymentProcess $PortalDeployment

関連トピック

Get-SCSMPortalDeploymentProcess

New-SCSMPortalDeploymentProcess

Update-SCSMPortalDeploymentProcess

Where-Object