Get-SCApplicationSetting

Get-SCApplicationSetting

Gets application settings for an application or application deployment.

構文

Parameter Set: ApplicationDeployment
Get-SCApplicationSetting -ApplicationDeployment <ApplicationDeployment> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: Application
Get-SCApplicationSetting -Application <SCApplication> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ApplicationPackage
Get-SCApplicationSetting -ApplicationPackage <ApplicationPackage> [-Name <String> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Get-SCApplicationSetting cmdlet gets application settings for an application or application deployment.

パラメーター

-Application<SCApplication>

Specifies an application object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-ApplicationDeployment<ApplicationDeployment>

Specifies an application deployment object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-ApplicationPackage<ApplicationPackage>

Specifies an application package object.

エイリアス

none

必須?

true

位置は?

named

既定値

none

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

True (ByValue)

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

false

-Name<String>

Specifies the name of a VMM object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

True (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

  • ApplicationSetting

Example 1: Get all application settings for an application deployment

The first command gets the application profile object named SvcWebAppProfile01, and then stores the object in the $AppProfile variable.

The second command gets the application deployment object named SvcWebDeployment01 for the application profile stored in $AppProfile, and then stores the object in the $AppDeployment variable.

The last command gets the application setting objects for the application deployment stored in $AppDeployment and stores the objects in the $AppSetting array. This example assumes that there are multiple settings for the application.

PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppDeployment = Get-SCApplicationDeployment -ApplicationProfile $AppProfile -Name "SvcWebDeployment01"
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $AppDeployment

Example 2: Get all application settings for an application installed on a virtual machine

The first command gets the virtual machine object named VM01, and then stores the object in the $VM variable.

The second command gets the application objects installed on VM01, and then stores the objects in the $Apps variable.

The last command gets the application settings for the first application stored in $Apps.

PS C:\> $VM = Get-SCVirtualMachine "VM01"
PS C:\> $Apps = Get-SCApplication -VM $VM
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $Apps[0] 

関連トピック

Get-SCApplication

Get-SCApplicationDeployment

Get-SCApplicationProfile

Set-SCApplicationSetting

Get-SCVirtualMachine