Get-SCPowerOptimizationRange

Get-SCPowerOptimizationRange

Gets the set of time ranges when power optimization is used.

Syntax

Parameter Set: FromDOSettings
Get-SCPowerOptimizationRange -DynamicOptimizationConfiguration <HostGroupDOSettings> [-VMMServer <ServerConnection> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Get-SCPowerOptimizationRange cmdlet gets the set of power optimization time ranges that have been added to a dynamic optimization configuration. During these time ranges, the hosts associated with the dynamic optimization configuration are turned on and off as needed.

Parameters

-DynamicOptimizationConfiguration<HostGroupDOSettings>

Specifies a dynamic optimization configuration object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

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.

Outputs

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

  • PowerOptimizationRange

Examples

Example Example 1: Get the power optimization time ranges associated with a dynamic optimization configuration.iti

The first command gets the host group object named HostGroup01, and then stores the object in the $HostGroup variable.

The second command gets the dynamic optimization configuration object for the host group stored in $HostGroup, and then stores the object in the $DOConfig variable.

The third command gets the power optimization ranges that have been added to the dynamic optimization configuration stored in $DOConfig.

The last command displays information about the power optimization ranges stored in $PORange.

PS C:\> $HostGroup = Get-SCVMHostGroup -Name "HostGroup01"
PS C:\> $DOConfig = Get-SCDynamicOptimizationConfiguration -VMHostGroup $HostGroup
PS C:\> $PORange = Get-SCPowerOptimizationRange -DynamicOptimizationConfiguration $DOConfig
PS C:\> $PORange

Add-SCPowerOptimizationRange

Get-SCDynamicOptimizationConfiguration

Get-SCVMHostGroup