Update-SCSMPortalSoftwarePackage

Update-SCSMPortalSoftwarePackage

Updates the properties of software packages that are configured for deployment in the Service Manager Self-Service Portal.

Syntax

Parameter Set: Default
Update-SCSMPortalSoftwarePackage [-SoftwarePackage] <EnterpriseManagementInstance[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Update-SCSMPortalSoftwarePackage cmdlet updates the properties of software packages that are configured for deployment in the Service Manager Self-Service Portal. Currently, the only property that you can update is Publish, which you can set to $True or to $False.

Parameters

-PassThru

Indicates that this cmdlet returns the software packages that it 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

-SoftwarePackage<EnterpriseManagementInstance[]>

Specifies an object that represents a software package to update.

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 an instance of a portal software package object to the SoftwarePackage parameter. To obtain a portal software package object, use the Get-SCSMPortalSoftwarePackage cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • This cmdlet does not generate any output.

Examples

Example 1: Set the publish value to $False

This command sets the Publish property of all software packages to $False. This setting causes all software packages to become unavailable for deployment.

PS C:\>Get-SCSMPortalSoftwarePackage | ForEach{ $_.Publish = $False; $_ } | Update-SCSMPortalSoftwarePackage

Get-SCSMPortalSoftwarePackage