Get-SCApplicationSetting
Gets application settings for an application or application deployment.
Syntax
ApplicationDeployment (Default)
Get-SCApplicationSetting
-ApplicationDeployment <ApplicationDeployment>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
Application
Get-SCApplicationSetting
-Application <SCApplication>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
ApplicationPackage
Get-SCApplicationSetting
-ApplicationPackage <ApplicationPackage>
[-VMMServer <ServerConnection>]
[-Name <String>]
[<CommonParameters>]
Description
The Get-SCApplicationSetting cmdlet gets application settings for an application or application deployment.
Examples
Example 1: Get all application settings for an application deployment
PS C:\> $AppProfile = Get-SCApplicationProfile -Name "SvcWebAppProfile01"
PS C:\> $AppDeployment = Get-SCApplicationDeployment -ApplicationProfile $AppProfile -Name "SvcWebDeployment01"
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $AppDeployment
The first command gets the application profile object named SvcWebAppProfile01 and 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 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).
Example 2: Get all application settings for an application installed on a virtual machine
PS C:\> $VM = Get-SCVirtualMachine "VM01"
PS C:\> $Apps = Get-SCApplication -VM $VM
PS C:\> $AppSetting = Get-SCApplicationSetting -ApplicationDeployment $Apps[0]
The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.
The second command gets the application objects installed on VM01 and stores the objects in the $Apps variable.
The last command gets the application settings for the first application stored in $Apps.
Parameters
-Application
Specifies an application object.
Parameter properties
Type: | SCApplication |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Application
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplicationDeployment
Specifies an application deployment object.
Parameter properties
Type: | ApplicationDeployment |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ApplicationDeployment
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplicationPackage
Specifies an application package object.
Parameter properties
Type: | ApplicationPackage |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ApplicationPackage
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of a Virtual Machine Manager (VMM) object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
ApplicationSetting
This cmdlet returns an ApplicationSetting object.