Set-CMCollectionPowerManagement

Configures power management settings for a device collection.

Syntax

Set-CMCollectionPowerManagement
   [-Apply]
   [-Confirm]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -InputObject <IResultObject>
   [-NonPeakPlan <PowerSchema>]
   [-PassThru]
   [-PeakEndTime <DateTime>]
   [-PeakPlan <PowerSchema>]
   [-PeakStartTime <DateTime>]
   [-WakeupTime <DateTime>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMCollectionPowerManagement [-Apply] -CollectionName  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-NonPeakPlan ] [-PassThru] [-PeakEndTime ]
 [-PeakPlan ] [-PeakStartTime ] [-WakeupTime ] [-WhatIf] []
Set-CMCollectionPowerManagement [-Apply] -CollectionId  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-NonPeakPlan ] [-PassThru] [-PeakEndTime ]
 [-PeakPlan ] [-PeakStartTime ] [-WakeupTime ] [-WhatIf] []
Set-CMCollectionPowerManagement -CollectionId  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-NeverApply] [-PassThru] [-WhatIf] []
Set-CMCollectionPowerManagement -CollectionId  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-None] [-PassThru] [-WhatIf] []
Set-CMCollectionPowerManagement -CollectionName  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-None] [-PassThru] [-WhatIf] []
Set-CMCollectionPowerManagement -CollectionName  [-Confirm] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-NeverApply] [-PassThru] [-WhatIf] []
Set-CMCollectionPowerManagement [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -InputObject  [-NeverApply] [-PassThru] [-WhatIf] []
Set-CMCollectionPowerManagement [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -InputObject  [-None] [-PassThru] [-WhatIf] []

Description

The Set-CMCollectionPowerManagement cmdlet configures power management settings for a device collection.

Examples

Example 1: Configure power management settings by using the pipeline

PS C:\> Get-CMCollection -Name "DeviceCol1" | Set-CMCollectionPowerManagement -NeverApply -PassThru

This command gets the device collection object named DeviceCol1 and uses the pipeline operator to pass the object to Set-CMCollectionPowerManagement. Set-CMCollectionPowerManagagement configures deviceCol1 to never apply power management settings to the computers in that collection.

Example 2: Configure power management settings by name

PS C:\> Set-CMCollectionPowerManagement -CollectionName "DeviceCol2" -Apply -PeakStartTime 8:00am -PeakEndTime 6:00pm -PeakPlan (Get-CMPowerManagementSchema -Peak -Name "Balanced (ConfigMgr)") -NonPeakPlan (Get-CMPowerManagementSchema -NonPeak -Name "Power Saver (ConfigMgr)") -WakeupTime 4:00am

This command specifies power management settings for the device collection DeviceCol2. During the peak hours of 8:00 AM to 6:00 PM, the peak power management plan named Balanced (ConfigMgr) is in effect. During non-peak hours, the non-peak power management plan named Power Saver (ConfigMgr) is in effect. The Windows timer is set to wake desktop computers install scheduled updates or software installations at 4:00 AM.

Required Parameters

-CollectionId

Specifies the collection ID of the device collection.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specifies the name of the device collection.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a device collection object. To obtain a device collection object, use the Get-CMCollection or the Get-CMDeviceCollection cmdlets.

Type:IResultObject
Aliases:Collection, CollectionSettings
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-NeverApply

Indicates that power management settings will never be applied to computers in the specified collection.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-None

Indicates that no power management settings are set for the specified collection.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Apply

Indicates that power management settings can be set for a specified device collection.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NonPeakPlan

Specifies a power management plan object for non-peak or non-business hours. To obtain a power plan object , use the Get-CMPowerManagementSchema cmdlet. To create a customized power plan, use New-CMPowerManagementCustomPlan cmdlet.

Type:PowerSchema
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PeakEndTime

Specifies the end time for peak hours.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PeakPlan

Specifies a power management plan object for peak or business hours. To obtain a power plan object, use Get-CMPowerManagementSchema cmdlet. To create a customized power plan, use New-CMPowerManagementCustomPlan cmdlet.

Type:PowerSchema
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PeakStartTime

Specifies the start time for peak hours.

Type:DateTime
Aliases:PeakStartHour
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WakeupTime

Specifies a time when the Windows timer wakes a desktop computer from sleep or hibernate to install scheduled updates or software installations.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False