Remove-DfsrPropagationTestFile

Remove-DfsrPropagationTestFile

Removes DFS Replication propagation test files.

構文

Parameter Set: Default
Remove-DfsrPropagationTestFile [-GroupName] <String[]> [-FolderName] <String[]> [[-ComputerName] <String> ] [-AgeInDays] <UInt32> [[-DomainName] <String> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-DfsrPropagationTestFile cmdlet removes test files from a Distributed File System (DFS) Replication replicated folder. Once you remove the file from one member computer in a replication group, DFS Replication removes the file from all other members. To create test files, use the Start-DfsrPropagationTest cmdlet.

Test files contain only test metadata. You can remove them at any time.

パラメーター

-AgeInDays<UInt32>

Specifies the age, in days, of propagation test files to delete. To delete propagation files created within the past 24 hours or to delete all propagation test files, set this value to zero (0).

エイリアス

なし

必須?

true

位置は?

4

既定値

なし

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

false

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

false

-ComputerName<String>

Specifies the name of a replication member computer. If you do not specify this parameter, the cmdlet uses the current computer.

エイリアス

Member,Mem

必須?

false

位置は?

3

既定値

[local computer]

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

True (ByPropertyName)

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

false

-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 removes test files from all replicated folders.

エイリアス

RF,RfName

必須?

true

位置は?

2

既定値

なし

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

True (ByPropertyName)

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

true

-Force

ユーザーの確認を求めずにコマンドを強制的に実行します。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-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 removes test files from replicated folders for all groups within the specified domain.

エイリアス

RG,RgName

必須?

true

位置は?

1

既定値

なし

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

True (ByValue, ByPropertyName)

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

true

-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: Remove all test files from a specified replicated folder

This command removes all propagation test files from the RF07 folder on the computer named SRV01. This computer is part of the group named RG01. The value of zero (0) for the AgeInDays parameter causes the command to remove all test files, no matter how long ago you created them. The command does not include the Force parameter, so you must confirm the removal.

PS C:\> Remove-DfsrPropagationTestFile -GroupName "RG01" -FolderName "RF07" -ComputerName "SRV01" -AgeInDays 0

関連トピック

Start-DfsrPropagationTest

Write-DfsrPropagationReport