Get-CMDatabaseReplicationStatus
Gets the status for database replication.
Syntax
Get-CMDatabaseReplicationStatus
[-ChildSiteCode <String>]
[-ParentSiteCode <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The Get-CMDatabaseReplicationStatus cmdlet gets the status of the database replication link for a Configuration Manager parent/child site pair. The cmdlet identifies the sites by site code.
You can specify just the site code or just the name for a parent or child and get all the database replication links for the specified site.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Get status using site codes
PS XYZ:\> Get-CMDataBaseReplicationStatus -ChildSiteCode "CCC" -ParentSiteCode "CCA"
This command gets the status of a database replication link for the child with a site code CCC and the parent with a site code CCA.
Parameters
-ChildSiteCode
Specifies a site code for a child site.
Type: | String |
Aliases: | Site2 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParentSiteCode
Specifies a site code for a parent site.
Type: | String |
Aliases: | Site1 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
IResultObject[]
IResultObject