Update-SCSMPortalDeploymentProcess

Update-SCSMPortalDeploymentProcess

Updates the properties of software deployment processes for the Self-Service Portal.

Syntax

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

Detailed Description

The Update-SCSMPortalDeploymentProcess cmdlet updates the properties of software deployment processes for the Self-Service Portal.

Parameters

-DeploymentProcess<EnterpriseManagementInstance[]>

Specifies a software deployment process. To obtain a process, use the Get-SCSMPortalDeploymentProcess cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-PassThru

Indicates that this cmdlet returns the Self-Service Portal software deployment process that this cmdlet updates. You can pass this object to other cmdlets.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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 software deployment process to the DeploymentProcess parameter. You can use the Get-SCSMPortalDeploymentProcess cmdlet to retrieve instances of deployment processes.

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: 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

New-SCSMPortalDeploymentProcess

Remove-SCSMPortalDeploymentProcess