Get-CMMaintenanceWindow

Gets the maintenance windows for a collection.

Syntax

Get-CMMaintenanceWindow
   [-Collection] <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-MaintenanceWindowName <String>]
   [<CommonParameters>]
Get-CMMaintenanceWindow [-CollectionId]  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-MaintenanceWindowName ] []
Get-CMMaintenanceWindow [-CollectionName]  [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-MaintenanceWindowName ] []

Description

The Get-CMMaintenanceWindow cmdlet gets the maintenance windows for specified collections.

Examples

Example 1: Get maintenance windows

PS C:\> Get-CMMaintenanceWindow -CollectionID "AAA0004D"

This command gets the maintenance windows for the specified collection.

Required Parameters

-Collection
Type:IResultObject
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-CollectionId

Specifies an array of collection IDs.

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

Optional Parameters

-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
-MaintenanceWindowName
Type:String
Aliases:Name
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False