Remove-SCSMPortalDeploymentProcess
Remove-SCSMPortalDeploymentProcess
Removes a software deployment process from the Service Manager Self-Service Portal.
Syntax
Parameter Set: Default
Remove-SCSMPortalDeploymentProcess [-DeploymentProcess] <EnterpriseManagementInstance[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-SCSMPortalDeploymentProcess cmdlet removes a software deployment process from the Service Manager Self-Service Portal.
Parameters
-DeploymentProcess<EnterpriseManagementInstance[]>
Specifies an object that represents a Software Deployment Process. To obtain an EnterpriseManagementInstance object, use the Get-SCSMPortalDeploymentProcess cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
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.
Outputs
The output type is the type of the objects that the cmdlet emits.
None.
This cmdlet does not generate any output.
Examples
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
Related topics
Get-SCSMPortalDeploymentProcess
New-SCSMPortalDeploymentProcess