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.
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 |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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).
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.
The output type is the type of the objects that the cmdlet emits.
None.
This cmdlet does not generate any output.
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
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