Update-SCSMPortalSoftwarePackage

Update-SCSMPortalSoftwarePackage

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

構文

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

詳細説明

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.

パラメーター

-PassThru

Specifies the output object that represents the software packages to update. This output object can be passed to other cmdlets.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SoftwarePackage<EnterpriseManagementInstance[]>

Specifies an object that represents a software package to update.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.EnterpriseManagement.Core.Cmdlets.Instances.EnterpriseManagementInstance

    You can pipe an instance of a portal software package object to the SoftwarePackage parameter. For example, the object that is returned by the Get-SCSMPortalSoftwarePackage cmdlet.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • This cmdlet does not generate any output.

Example 1: Set the publish value to $False

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

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

関連トピック

Get-SCSMPortalSoftwarePackage