Export (0) Print
Expand All
Expand Minimize

Get-SCPowerOptimizationRange

Updated: April 29, 2014

Applies To: System Center 2012 R2 Virtual Machine Manager

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 executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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.

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 1: Get the power optimization time ranges associated with a dynamic optimization configuration

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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft