Get-SCPowerOptimizationRange
Gets the set of time ranges when power optimization will be used.
Syntax
Get-SCPowerOptimizationRange
-DynamicOptimizationConfiguration <HostGroupDOSettings>
[-VMMServer <ServerConnection>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
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.
Examples
Example 1: Get the power optmization time ranges associated with a dynamic optimization configuration
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> $DOConfig = Get-SCDynamicOptimizationConfiguration -VMHostGroup $HostGroup
PS C:\> $PORange = Get-SCPowerOptimizationRange -DynamicOptimizationConfiguration $DOConfig
PS C:\> $PORange
The first command gets the host group object named HostGroup01 and stores the object in the $HostGroup variable.
The second command gets the dynamic optimization configuration object for the host group stored in $HostGroup and 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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DynamicOptimizationConfiguration
Specifies a dynamic optimization configuration object.
Type: | HostGroupDOSettings |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Specifies a VMM server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
PowerOptimizationRange
This cmdlet returns a PowerOptimizationRange object.