Get-CMSiteMaintenanceTask
Gets maintenance tasks in Configuration Manager.
Parameter Set: SearchByName
Get-CMSiteMaintenanceTask -SiteCode <String> [-MaintenanceTaskName <String[]> ] [ <CommonParameters>]
The Get-CMSiteMaintenanceTask cmdlet gets maintenance tasks in Microsoft System Center 2012 Configuration Manager. A maintenance task is a task in System Center 2012 Configuration Manager that performs maintenance on sites and databases.
Specifies an array of names for maintenance tasks.
Aliases |
ItemName |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the site code of the Configuration Manager site.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This command gets the maintenance task named Backup for the Configuration Manager site that has the site code CM1.
PS C:\> Get-CMSiteMaintnanceTask -SiteCode "CM1" -MaintenanceTaskName "Backup"