Get-CMSiteMaintenanceTask
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.
パラメーター
-MaintenanceTaskName<String[]>
Specifies an array of names for maintenance tasks.
エイリアス |
ItemName |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SiteCode<String>
Specifies the site code of the Configuration Manager site.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Get a maintenance task
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"