Clear-SCPowerOptimizationSchedule

Deletes a power optimization time range from a dynamic optimization configuration.

Description

The Clear-SCPowerOptimizationSchedule cmdlet deletes power optimization time ranges from the power optimization schedule configured for a dynamic optimization configuration.

For more information about Clear-SCPowerOptimizationSchedule, type: "Get-Help Clear-SCPowerOptimization -online".

Parameters

DynamicOptimizationConfiguration

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

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

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. 

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Examples

1: Remove all power opmization time ranges associated with a dynamic optimization configuration.
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> $DOConfig = Get-SCDynamicOptimizationConfiguration -VMHostGroup $HostGroup 
PS C:\> Clear-SCPowerOptimizationSchedule -DynamicOptimizationConfiguration $DOConfig
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 last command clears all time ranges in the power optimization schedule for the dynamic optimization configuration stored in $DOConfig.

See Also