Write-DfsrHealthReport

Write-DfsrHealthReport

Generates a DFS Replication health report.

구문

Parameter Set: Default
Write-DfsrHealthReport [-GroupName] <String[]> [[-ReferenceComputerName] <String> ] [[-MemberComputerName] <String[]> ] [[-Path] <String> ] [[-DomainName] <String> ] [-CountFiles] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Write-DfsrHealthReport cmdlet generates a DFS Replication health, or diagnostic, report for two or more servers. A health reports contains administrative information about replication state, efficiency, and any potential replication issues.

The cmdlet creates the reports as an HTML file, with an associated XML file.

매개 변수

-CountFiles

Indicates that the cmdlet counts the number of files present in the replicated content folders. By default, the cmdlet does not count files, in order to save time while generating a report.

별칭

없음

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DomainName<String>

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

별칭

없음

필수 여부

false

위치

101

기본값

[Current Domain]

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-GroupName<String[]>

Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replication groups. You can specify multiple groups, separated by commas, as well as wildcard characters (*).

별칭

RG,RgName

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

true

-MemberComputerName<String[]>

Specifies an array of DFS Replication members to analyze in comparison to a server specified by the ReferenceComputerName parameter. If you do not specify this parameter, the cmdlet includes all members of the replication group. You can specify multiple computer names, separated by commas, as well as wildcard characters (*).

별칭

MemberList,MemList

필수 여부

false

위치

3

기본값

[All members]

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

true

-Path<String>

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

The cmdlet names each report in the format Health-<Replication Group Name>-<Date>-<Time> with HTML and XML extensions.

별칭

FilePath

필수 여부

false

위치

4

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-ReferenceComputerName<String>

Specifies the name of a reference computer in the replication group. The replication backlog from this server is compared to all other members specified in the MemberComputerName parameter. If you do not specify this parameter, the cmdlet uses the local computer.

별칭

ReferenceMember,RefMem

필수 여부

false

위치

2

기본값

[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

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • [none]

예제

Example 1: Generate a health report with a file count

This command generates a report for the replication group RG01 and the reference computer SRV01.

PS C:\> Write-DfsrHealthReport -GroupName "RG01" -ReferenceComputerName "SRV01" -MemberComputerName SRV02 -Path C:\reports -CountFiles

Example 2: Generate a health report

This command generates a health report for the RG01 replication group with a baseline computer of SRV01 and all other servers in the replication group. The command writes the report to the C:\ folder.

PS C:\> Write-DfsrHealthReport -GroupName "RG01" -ReferenceComputerName "SRV01" -Verbose