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 an object that represents a software deployment process. This is returned by the Get-SCSMPortalDeploymentProcess cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

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.

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

The commands in this example change the Self-Service Portal software deployment process to use a minor change request rather than the Standard Change Request. The first command displays the settings of the Self-Service Portal software deployment process. The following commands update the Self-Service Portal software deployment process. The final commands displays the settings again and verifies the update.

PS C:\>$process = Get-SCSMPortalDeploymentProcess |?{$_.displayname -eq "Process1"}
PS C:\>$process
PS C:\>$template = Get-SCSMObjectTemplate -name minorchangerequest
PS C:\>$process.ChangeRequestTemplateId = $template.Id
PS C:\>$process.ChangeRequestTemplateName = $template.Name
PS C:\>$process|Update-SCSMPortalDeploymentProcess
PS C:\>Get-SCSMPortalDeploymentProcess |?{$_.displayname -eq "Process1"}
PS C:\>$process = get-scsmportaldeploymentprocess
PS C:\>$process.ChangeRequestTemplateName = "MinorChangeRequest"
PS C:\>Update-SCSMPortalDeploymentProcess $process
PS C:\>Get-SCSMPortalDeploymentProcess