Start-DfsrPropagationTest

Start-DfsrPropagationTest

Creates a propagation test file in a replicated folder.

構文

Parameter Set: Default
Start-DfsrPropagationTest [[-GroupName] <String[]> ] [-FolderName] <String[]> [-ReferenceComputerName] <String> [[-DomainName] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Start-DfsrPropagationTest cmdlet creates a propagation test file in a Distributed File System (DFS) replicated folder. The test file contains metadata, such as time and date stamps. The DFS Replication service propagates the file to other computers in the replication group. You can create propagation reports by using the Write-DfsrPropagationReport cmdlet.

This cmdlet creates test files in replicated folders in a hidden, read-only system folder named __DFSR_DIAGNOSTICS_TEST_FOLDER__. The cmdlet names the test files <Reference Computer Name>@<GUID>@<RG Name>-<RF Name>.xml. Use the Remove-DfsrPropagationTestFile cmdlet to delete old test files.

パラメーター

-DomainName<String>

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory Domain Service (AD DS) domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the domain of the current user.

エイリアス

なし

必須?

false

位置は?

101

既定値

[Current Domain]

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

True (ByPropertyName)

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

false

-FolderName<String[]>

Specifies an array of names of replicated folders. You can use a comma separated list and the wildcard character (*). If you do not specify this parameter, the cmdlet creates test files for all replicated folders within the specified group and domain.

エイリアス

RF,RfName

必須?

true

位置は?

2

既定値

なし

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

True (ByPropertyName)

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

true

-GroupName<String[]>

Specifies an array of names of replication groups. You can use a comma separated list and the wildcard character (*). If you do not specify this parameter, the cmdlet creates test files for all replicated folders that have name that matches the value of the FolderName parameter within the specified domain.

エイリアス

RG,RgName

必須?

false

位置は?

1

既定値

なし

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

True (ByValue, ByPropertyName)

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

true

-ReferenceComputerName<String>

Specifies the name of a reference computer in the replication group. The cmdlet creates the propagation test file on the reference computer. If you do not specify this parameter, the cmdlet uses the local computer as the reference computer.

エイリアス

ReferenceMember,RefMem

必須?

true

位置は?

3

既定値

[local computer]

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

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)。

入力

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

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, Microsoft.DistributedFileSystemReplication.DfsReplicatedFolder, string

出力

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

  • [none]

Example 1: Create a test file on a specified reference computer

This command creates a propagation test file for the replicated folder named ReplicatedFolder19 in the group named ReplicationGroup07. The command specifies a reference computer name.

PS C:\> Start-DfsrPropagationTest -GroupName "ReplicationGroup07" -FolderName "ReplicatedFolder19" -ReferenceComputerName "SRV01.Contoso.com"

Example 2: Create test files for all replicated folders

This command creates test files in all replicated folders on the reference computer named SRV01.corp.Contoso.com. The command uses the wildcard character (*) for the GroupName and FolderName parameter values, and, therefore, it creates a test file in any replicated folder on the computer, regardless of what replication group or groups the computer might be a member of.

PS C:\> Start-DfsrPropagationTest -GroupName * -FolderName * -ReferenceComputerName "SRV01.corp.Contoso.com" -Verbose

関連トピック

Remove-DfsrPropagationTestFile

Write-DfsrPropagationReport