Get-CMSiteMaintenanceTask

Gets maintenance tasks in Configuration Manager.

Syntax

Get-CMSiteMaintenanceTask
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-MaintenanceTaskName <String>]
   [-SiteCode <String>]
   [<CommonParameters>]

Description

The Get-CMSiteMaintenanceTask cmdlet gets maintenance tasks in Microsoft System Center Configuration Manager. A maintenance task is a task in System Center Configuration Manager that performs maintenance on sites and databases.

Examples

Example 1: Get a maintenance task

PS C:\> Get-CMSiteMaintenanceTask -SiteCode "CM1" -MaintenanceTaskName "Backup"

This command gets the maintenance task named Backup for the Configuration Manager site that has the site code CM1.

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
-MaintenanceTaskName

Specifies an array of names for maintenance tasks.

Type:String
Aliases:ItemName
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies the site code of the Configuration Manager site.

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