Set-MaintenanceJobStartTime
Sets or removes the start time of a maintenance job.
Set-MaintenanceJobStartTime [[-StartTime] <DateTime>] [-MaintenanceJob] <HouseKeepingJobs> [-DPMServerName] <String> [<CommonParameters>]
Set-MaintenanceJobStartTime [-DPMServerName] <String> [-MaintenanceJob] <HouseKeepingJobs> [-Remove] [<CommonParameters>]
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.
Indicates a time when an operation must begin.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
2 |
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 |
Name of a DPM server.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
0 |
Indicates that a remove operation will be performed.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
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.
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.
Set-MaintenanceJobStartTime -DPMServerName TestServer -MaintenanceJob CatalogPruning -StartTime 02:00
This command sets the maintenance job to run on the server at 2 a.m.
Set-MaintenanceJobStartTime -DPMServerName TestServer -MaintenanceJob LibraryInventory -Remove
This command stops the running of the automatic inventory.