Remove-DfsrPropagationTestFile
Remove-DfsrPropagationTestFile
Removes DFS Replication propagation test files.
Syntaxe
Parameter Set: Default
Remove-DfsrPropagationTestFile [-GroupName] <String[]> [-FolderName] <String[]> [[-ComputerName] <String> ] [-AgeInDays] <UInt32> [[-DomainName] <String> ] [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Description détaillée
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.
Paramètres
-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).
Alias |
none |
Obligatoire ? |
true |
Position ? |
4 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-ComputerName<String>
Specifies the name of a replication member computer. If you do not specify this parameter, the cmdlet uses the current computer.
Alias |
Member,Mem |
Obligatoire ? |
false |
Position ? |
3 |
Valeur par défaut |
[local computer] |
Accepter l’entrée de pipeline ? |
True (ByPropertyName) |
Accepter les caractères génériques ? |
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.
Alias |
none |
Obligatoire ? |
false |
Position ? |
101 |
Valeur par défaut |
[Current Domain] |
Accepter l’entrée de pipeline ? |
True (ByPropertyName) |
Accepter les caractères génériques ? |
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.
Alias |
RF,RfName |
Obligatoire ? |
true |
Position ? |
2 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
True (ByPropertyName) |
Accepter les caractères génériques ? |
true |
-Force
Force la commande à s’exécuter sans demander confirmation à l’utilisateur.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
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.
Alias |
RG,RgName |
Obligatoire ? |
true |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
True (ByValue, ByPropertyName) |
Accepter les caractères génériques ? |
true |
-Confirm
Votre confirmation sera requise avant l’exécution de l’applet de commande.
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
false |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-WhatIf
Présente les conséquences éventuelles de l’exécution de l’applet de commande. L’applet de commande n’est pas exécutée.
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
false |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.
- Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, Microsoft.DistributedFileSystemReplication.DfsReplicatedFolder, string
Sorties
Le type de sortie est le type des objets émis par l’applet de commande.
- [none]
Exemples
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