Set-CMSiteMaintenanceTask

Set-CMSiteMaintenanceTask

Changes settings for a Configuration Manager maintenance task.

構文

Parameter Set: SetMaintenanceTasksByName
Set-CMSiteMaintenanceTask -MaintenanceTask <MaintenanceTask> {BackupSiteServer | CheckApplicationTitleWithInventoryInformation | ClearUndiscoveredClients | DeleteAgedApplicationRequestData | DeleteAgedClientOperations | DeleteAgedClientPresenceHistory | DeleteAgedCollectedFiles | DeleteAgedComputerAssociationData | DeleteAgedDeleteDetectionData | DeleteAgedDevicesManagedByTheExchangeServerConnector | DeleteAgedDeviceWipeRecord | DeleteAgedDiscoveryData | DeleteAgedDistributionPointUsageStats | DeleteAgedEndpointProtectionHealthStatusHistoryData | DeleteAgedEnrolledDevices | DeleteAgedInventoryHistory | DeleteAgedLogData | DeleteAgedNotificationTaskHistory | DeleteAgedReplicationSummaryData | DeleteAgedReplicationTrackingData | DeleteAgedSoftwareMeteringData | DeleteAgedSoftwareMeteringSummaryData | DeleteAgedStatusMessages | DeleteAgedThreatData | DeleteAgedUnknownComputers | DeleteAgedUserDeviceAffinityData | DeleteInactiveClientDiscoveryData | DeleteObsoleteAlerts | DeleteObsoleteClientDiscoveryData | DeleteObsoleteForestDiscoverySitesAndSubnets | DeleteUnusedApplicationRevisions | EvaluateProvisionedAmtComputerCertificates | MonitorKeys | RebuildIndexes | SummarizeInstalledSoftwareData | SummarizeSoftwareMeteringFileUsageData | SummarizeSoftwareMeteringMonthlyUsageData} -SiteCode <String> [-BeginTime <DateTime> ] [-DaysOfWeek {Friday | Monday | Saturday | Sunday | Thursday | Tuesday | Wednesday}[] ] [-DeleteThanOlderDays <Int32> ] [-DeviceName <String> ] [-Enabled <Boolean> ] [-EnabledAlert <Boolean> ] [-LatestBeginTime <DateTime> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SetSummaryTaskByName
Set-CMSiteMaintenanceTask -SummaryTask <SummaryTask> {UpdateApplicationCatalogTables} [-Enabled <Boolean> ] [-RunIntervalMinutes <Int32> ] [-RunNow <Boolean> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-CMSiteMaintenanceTask cmdlet changes settings for a Microsoft System Center 2012 Configuration Manager maintenance task.

パラメーター

-BeginTime<DateTime>

Specifies the date and time at which a maintenance task starts.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DaysOfWeek<DaysOfWeek[]>

Specifies an array of day names that determine the days of each week on which the maintenance task runs. Valid values are:

-- Monday
-- Tuesday
-- Wednesday
-- Thursday
-- Friday
-- Saturday
-- Sunday

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DeleteThanOlderDays<Int32>

Specifies the number of days before Configuration Manager deletes the maintenance task.

エイリアス

DeleteOlderThan

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DeviceName<String>

Specifies the name of the device on which the maintenance task runs.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Enabled<Boolean>

Indicates whether the maintenance task is enabled in Configuration Manager.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-EnabledAlert<Boolean>

Indicates whether alerts for the maintenance task are enabled in Configuration Manager.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-LatestBeginTime<DateTime>

Specifies a future date and time at which the maintenance task runs.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-MaintenanceTask<MaintenanceTask>

Specifies the name of a maintenance task. Valid values are:

-- BackupConfigMgrSecondarySiteServer
-- BackupSiteServer
-- CheckApplicationTitleWithInventoryInformation
-- ClearUndiscoveredClients
-- DeleteAgedApplicationRequestData
-- DeleteAgedClientAccessLicenseData
-- DeleteAgedClientOperations
-- DeleteAgedClientPresenceHistory
-- DeleteAgedCollectedFiles
-- DeleteAgedComputerAssociationData
-- DeleteAgedConfigurationManagementData
-- DeleteAgedDeleteDetectionData
-- DeleteAgedDevicesManagedByTheExchangeServerConnector
-- DeleteAgedDeviceWipeRecord
-- DeleteAgedDiscoveryData
-- DeleteAgedEndpointProtectionHealthStatusHistoryData
-- DeleteAgedEnrolledDevices
-- DeleteAgedInventoryHistory
-- DeleteAgedLogData
-- DeleteAgedNotificationTaskHistory
-- DeleteAgedReplicationSummaryData
-- DeleteAgedReplicationTrackingData
-- DeleteAgedSoftwareMeteringData
-- DeleteAgedStatusMessages
-- DeleteAgedThreatData
-- DeleteAgedUnknownComputers
-- DeleteAgedUserDeviceAffinityData
-- DeletedAgedClientPresenceHistory
-- DeleteExpiredActivities
-- DeleteExpiredActivityFacts
-- DeleteExpiredBookmarks
-- DeleteInactiveClientDiscoveryData
-- DeleteObsoleteAlerts
-- DeleteObsoleteClientDiscoveryData
-- DeleteObsoleteForestDiscoverySitesAndSubnets
-- DeleteUnusedApplicationRevisions
-- EvaluateProvisionedAmtComputerCertificates
-- ExportSiteDatabaseTransactionLog
-- MonitorKeys
-- RebuildIndexes
-- ResetAmtComputerPasswords
-- SiteDatabase
-- SummarizeClientAccessLicenseWeeklyUsageData
-- SummarizeInstalledSoftwareData
-- SummarizeSoftwareMeteringFileUsageData
-- SummarizeSoftwareMeteringMonthlyUsageData
-- UpdateStatistics

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-RunIntervalMinutes<Int32>

Specifies the number of minutes that elapse between each run for the maintenance task.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-RunNow<Boolean>

Indicates whether Configuration Manager runs the maintenance task immediately.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SiteCode<String>

Specifies the site code of the Configuration Manager site that hosts the site system role.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SummaryTask<SummaryTask>

Specifies a summary maintenance task. The acceptable value for this parameter is UpdateApplicationCatalogTables.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Set a maintenance task to run once a week

This command specifies that the maintenance task named Backup runs on Friday each week on the Configuration Manager site that has the site code CM1.

PS C:\> Set-CMSiteMaintnanceTask -SiteCode "CM1" -MaintenanceTaskName "Backup" -DaysOfWeek Friday

関連トピック

Get-CMSiteMaintenanceTask