Set-SCComputerTierConfiguration

Configures the computer tier configuration object in an undeployed service configuration.

Description

The Set-SCComputerTierConfiguration cmdlet configures the computer tier configuration object in an undeployed service configuration.

For more information about Set-SCComputerTierConfiguration, type: "Get-Help Set-SCComputerTierConfiguration -online".

Parameters

ComputerTierConfiguration

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a computer tier configuration object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

TimeZone

Required? false
Accept Pipeline Input? false
Position? named
Specifies a number (an index) that identifies a geographical region that shares the same standard time. For a list of time zone indexes, see "Microsoft Time Zone Index Values" at: http://go.microsoft.com/fwlink/?LinkId=120935. If no time zone is specified, the default time zone used for a virtual machine is the same time zone setting that is on the virtual machine host.

Example format to specify the GMT Standard Time zone: -TimeZone 085

Examples

1: Configure the computer tier within a service configuration.
PS C:\> $ServiceConfig = Get-SCServiceConfiguration -Name "Service01"
PS C:\> $TierConfig = Get-SCComputerTierConfiguration -ServiceConfiguration $ServiceConfig
PS C:\> $UpdatedConfig = Set-SCComputerTierConfiguration -ComputerTierConfiguration $TierConfig -TimeZone 085
PS C:\> $UpdatedConfig

The first command gets the service configuration object named Service01 and stores the object in the $ServiceConfig variable.

The second command gets the computer tier configuration for the service configuration stored in $ServiceConfig and stores the object in the $TierConfig variable.

The third command sets the timezone property for the computer tier configuration stored in $TierConfig and stores the computer tier configuration in the $UpdatedConfig variable.

The last command displays information about the updated computer tier configuration stored in $UpdatedConfig to the user.

See Also