Write-DfsrPropagationReport

Write-DfsrPropagationReport

Generates reports for propagation test files in a replication group.

语法

Parameter Set: Default
Write-DfsrPropagationReport [-GroupName] <String[]> [-FolderName] <String[]> [-ReferenceComputerName] <String> [[-Path] <String> ] [[-FileCount] <Int32> ] [[-DomainName] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

详细说明

The Write-DfsrPropagationReport cmdlet generates reports for the replication progress of propagation test files in a replication group. Specify the replication group, replicated folder, and a member computer to act as the reference computer.

The cmdlet creates files named Propagation-<RG Name>-<Date>-<Time>.html and Propagation-<RG Name>-<Date>-<Time>.xml. You can specify a folder to save these files to, or use the current working directory.

Use the Start-DfsrPropagationTest cmdlet to create a propagation test file.

参数

-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

-FileCount<Int32>

Specifies the number of most recently generated propagation test files to use for generating the report. If you do not specify this parameter, the cmdlet uses all files.

别名

是否为必需?

false

位置?

5

默认值

是否接受管道输入?

false

是否接受通配符?

false

-FolderName<String[]>

Specifies an array of names of replicated folders. If you do not specify this parameter, the cmdlet applies to all participating replicated folders. You can use a comma separated list and the wildcard character (*).

别名

RF,RfName

是否为必需?

true

位置?

2

默认值

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

true

-GroupName<String[]>

Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet applies to all participating replication groups. You can use a comma separated list and the wildcard character (*).

别名

RG,RgName

是否为必需?

true

位置?

1

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

true

-Path<String>

Specifies a folder for the report file. If you do not specify this parameter, the cmdlet uses the current working directory.

别名

FilePath

是否为必需?

false

位置?

4

默认值

是否接受管道输入?

false

是否接受通配符?

false

-ReferenceComputerName<String>

Specifies the name of a reference computer in the replication group. The cmdlet compares the replication test file from this reference computer to test files for all other members of the replication group. If you do not specify this parameter, the cmdlet uses the current computer.

别名

ReferenceMember,RefMem

是否为必需?

true

位置?

3

默认值

[local computer]

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

false

-Confirm

运行 cmdlet 之前提示你进行确认。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

-WhatIf

显示如果运行 cmdlet 则会发生什么情况。cmdlet 未运行。

是否为必需?

false

位置?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

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

输出

输出类型是 cmdlet 所发出对象的类型。

  • [none]

示例

Example 1: Create a propagation report for a specific group and replicated folder

This command creates a propagation report, as HTML and XML files, in the folder C:\Reports. The command specifies SRV01 as reference computer and specifies group name and folder name.

PS C:\> Write-DfsrPropagationReport -GroupName "RG01" -FolderName "RF22" -ReferenceComputerName "SRV01" -Path "C:\Reports"

Example 2: Create propagation reports for all groups and replicated folders by using wildcards

This command creates propagation reports for all replicated folders in all replication groups by using a wildcard character (*) for the GroupName and FolderName parameters. The command specifies SRV01 as the reference computer. This command uses the Verbose parameter to display information to the console.

PS C:\> Write-DfsrPropagationReport -GroupName * -FolderName * -ReferenceComputerName "SRV01" -Verbose

相关主题

Remove-DfsrPropagationTestFile

Start-DfsrPropagationTest