Set-WssClientBackupVolumeExcludedFolder

Set-WssClientBackupVolumeExcludedFolder

Specifies folders to exclude from client backup on a computer.

Sintaxis

Parameter Set: ByName
Set-WssClientBackupVolumeExcludedFolder [-ComputerName] <String> [-VolumeGuid] <Guid> [[-ExcludedFolders] <ICollection<String>> ] [-Clear] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: BySid
Set-WssClientBackupVolumeExcludedFolder [-ComputerSid] <String> [-VolumeGuid] <Guid> [[-ExcludedFolders] <ICollection<String>> ] [-Clear] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Set-WssClientBackupVolumeExcludedFolder cmdlet specifies folders to exclude from client backup on a computer. Specify a computer by name or security identifier (SID). Specify a volume by using its GUID.

If you use the Clear parameter, the cmdlet clears the list of excluded folders, so future backups do not exclude any folders.

Parámetros

-Clear

Indicates that the cmdlet clears the list of excluded folders.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ComputerName<String>

Specifies the name of a computer.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-ComputerSid<String>

Specifies the SID of a computer.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ExcludedFolders<ICollection<String>>

Specifies a collection of folder paths. The volume containing the folders is specified by the -VolumeGuid parameter, so do not include the volume letter as part of the path.

Alias

ninguno

¿Requerido?

false

¿Posición?

5

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-VolumeGuid<Guid>

Specifies the GUID of a volume. To obtain a GUID, use the Get-WssClientBackupVolume cmdlet.

Alias

ninguno

¿Requerido?

true

¿Posición?

4

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

Example 1: Exclude folders from backup for a volume

This command excludes folders for the specified volume for the computer named Workstation073. The command accepts a collection of folders to exclude from backup.

PS C:\> Set-WssClientBackupVolumeExcludedFolder -ComputerName "Workstation073" -VolumeGuid b6b093a2-1860-4172-a4a5-07ce2aebfa13 -ExcludedFolders (@("Temp\","Downloads\") -as [string[]])

Temas relacionados

Disable-WssClientBackupVolume

Enable-WssClientBackupVolume

Get-WssClientBackupVolume