Write-DfsrPropagationReport
Generates reports for propagation test files in a replication group.
Syntax
Write-DfsrPropagationReport
[-GroupName] <String[]>
[-FolderName] <String[]>
[-ReferenceComputerName] <String>
[[-Path] <String>]
[[-FileCount] <Int32>]
[[-DomainName] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
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.
Examples
Example 1: Create a propagation report for a specific group and replicated folder
PS C:\> Write-DfsrPropagationReport -GroupName "RG01" -FolderName "RF22" -ReferenceComputerName "SRV01" -Path "C:\Reports"
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.
Example 2: Create propagation reports for all groups and replicated folders by using wildcards
PS C:\> Write-DfsrPropagationReport -GroupName * -FolderName * -ReferenceComputerName "SRV01" -Verbose
VERBOSE: Performing operation "Write-DfsrPropagationReport" on Target "DFSR membership with domain: corp.contoso.com;
replication group: RG 1; replicated folder: RF 1; computer: SRV01; GUID: {966e2e84-7792-438f-8344-c8f76d214d06}.".
VERBOSE: Successfully saved the propagation report for DFSR membership with domain: corp.contoso.com; replication
group: RG 1; replicated folder: RF 1; computer: SRV01; GUID: {966e2e84-7792-438f-8344-c8f76d214d06}. The XML file is
located here: "C:\Propagation-RG 1-RF 1-04Apr2013-2109.xml". The HTML file is located here: "C:\Propagation-RG 1-RF
1-04Apr2013-2109.html".
VERBOSE: Performing operation "Write-DfsrPropagationReport" on Target "DFSR membership with domain: corp.contoso.com;
replication group: Branch Office 1; replicated folder: Data Distribution 1; computer: SRV01; GUID:
{dbaa3a16-f731-4428-8a4f-8278673e848a}.".
VERBOSE: Successfully saved the propagation report for DFSR membership with domain: corp.contoso.com; replication
group: Branch Office 1; replicated folder: Data Distribution 1; computer: SRV01; GUID:
{dbaa3a16-f731-4428-8a4f-8278673e848a}. The XML file is located here: "C:\Propagation-Branch Office 1-Data Distribution
1-04Apr2013-2109.xml". The HTML file is located here: "C:\Propagation-Branch Office 1-Data Distribution
1-04Apr2013-2109.html".
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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DomainName
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.
Type: | String |
Position: | 100 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-FileCount
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.
Type: | Int32 |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FolderName
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 (*).
Type: | String[] |
Aliases: | RF, RfName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-GroupName
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 (*).
Type: | String[] |
Aliases: | RG, RgName |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-Path
Specifies a folder for the report file. If you do not specify this parameter, the cmdlet uses the current working directory.
Type: | String |
Aliases: | FilePath |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ReferenceComputerName
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.
Type: | String |
Aliases: | ReferenceMember, RefMem |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, Microsoft.DistributedFileSystemReplication.DfsReplicatedFolder, String
Outputs
None