Share via


Start-DPMDatasourceConsistencyCheck

Performs a consistency check on a DPM data source.

Syntax

Datasource

Start-DPMDatasourceConsistencyCheck
    [-Datasource] <Datasource>
    [[-AdhocJobsContext] <AdhocJobsContext>]
    [-HeavyWeight]
    [-JobStateChangedEventHandler <JobStateChangedEventHandler>]
    [-ForcedFullCC]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ProtectionGroup

Start-DPMDatasourceConsistencyCheck
    [-ProtectionGroup] <ProtectionGroup>
    [[-AdhocJobsContext] <AdhocJobsContext>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Start-DPMDatasourceConsistencyCheck cmdlet performs a consistency check on a System Center - Data Protection Manager (DPM) data source. You can run consistency checks on a specific data source or on all data sources in a protection group that are in an inconsistent state.

Examples

Example 1: Start a consistency check on a data source

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName TestingServer
PS C:\> $PObject = Get-DPMDatasource $PGroup[0]
PS C:\> Start-DPMDatasourceConsistencyCheck -Datasource $PObject

The first command gets the protection groups from the server named TestingServer by using the Get-DPMProtectionGroup cmdlet. The command stores them in the $PGroup variable.

The second command gets the data source for the first protection group in $PGroup, and then stores the data source in the $Ds variable.

The third command runs a consistency check on the data source that is stored in $Ds.

Parameters

-AdhocJobsContext

Specifies the context details of the ad hoc job. Do not use this parameter from the Windows PowerShell command line.

Parameter properties

Type:AdhocJobsContext
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Datasource

Specifies a data source object for which this cmdlet starts a consistency check. A data source can be a file system share or volume for the Windows operating system, Microsoft SQL Server database, Microsoft Exchange Server storage group, Microsoft SharePoint farm, Microsoft Virtual Machine, DPM database, or system state that is a member of a protection group.

Parameter properties

Type:Datasource
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Datasource
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ForcedFullCC

Indicates that this cmdlet performs a heavyweight consistency check on all databases in the farm, not just on the databases in an inconsistent state. This option is specific to SharePoint.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Datasource
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-HeavyWeight

Indicates that the cmdlet performs a heavyweight consistency check. A heavyweight consistency check creates a checksum for the contents of each file. This parameter affects only file servers. The cmdlet always performs heavyweight consistency checks on application servers.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Datasource
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobStateChangedEventHandler

Specifies an event handler for Job.StateChanged events. Use this parameter to build a graphical user interface based on cmdlets. Do not use this parameter in the DPM Management Shell.

Parameter properties

Type:JobStateChangedEventHandler
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Handler

Parameter sets

Datasource
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionGroup

Specifies a protection group which contains data sources on which this cmdlet runs a check. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Parameter properties

Type:ProtectionGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ProtectionGroup
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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