Set-MaintenanceJobStartTime

Set-MaintenanceJobStartTime

Sets or removes the start time of a maintenance job.

Syntax

Set-MaintenanceJobStartTime [[-StartTime] <DateTime>] [-MaintenanceJob] <HouseKeepingJobs> [-DPMServerName] <String> [<CommonParameters>]


Set-MaintenanceJobStartTime [-DPMServerName] <String> [-MaintenanceJob] <HouseKeepingJobs> [-Remove] [<CommonParameters>]

Detailed Description

The Set-MaintenanceJobStartTime cmdlet sets the start time of a maintenance job.

Use the -Remove parameter to stop running the job.

Catalog Pruning and Detailed Inventory jobs can be rescheduled using this cmdlet.

Parameters

-StartTime

Indicates a time when an operation must begin.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

2

-MaintenanceJob

Indicates a maintenance job to be performed on the replica. The valid values are CatalogPruning and DetailedInventory.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-DPMServerName

Name of a DPM server.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

0

-Remove

Indicates that a remove operation will be performed.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Set-MaintenanceJobStartTime -detailed".
    For technical information, type "Get-Help Set-MaintenanceJobStartTime -full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

Set-MaintenanceJobStartTime -DPMServerName TestServer -MaintenanceJob CatalogPruning  -StartTime 02:00

This command sets the maintenance job to run on the server at 2 a.m.

EXAMPLE 2

Set-MaintenanceJobStartTime -DPMServerName TestServer -MaintenanceJob LibraryInventory -Remove

This command stops the running of the automatic inventory.