Set-WssFileHistoryConfiguration

Set-WssFileHistoryConfiguration

Changes the File History configurations settings for the server.

Sintaxis

Parameter Set: Default
Set-WssFileHistoryConfiguration [-Configuration] <ConfigurationSet> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Set-WssFileHistoryConfiguration cmdlet changes the File History configuration settings for the server. File History is a backup application that continuously protects the personal files of users stored in Libraries, Desktop, Favorites, and Contacts folders. You can use the Get-WssFileHistoryConfiguration to get the File History configurations settings for the server.

Parámetros

-Configuration<ConfigurationSet>

Specifies the File History configuration settings for the server.

Alias

Config

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-Force

Fuerza que el comando se ejecute sin pedir confirmación al usuario.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

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.

  • Microsoft.WindowsServerSolutions.DataProtection.FileBackup.ConfigurationSet

Salidas

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

  • Microsoft.WindowsServerSolutions.DataProtection.FileBackup.ConfigurationSet

    This cmdlet generates the file history configuration settings stored on the server.

Ejemplos

Example 1: Change the File History configurations settings

This example changes the File History configurations settings for the server.

The first command gets the File History configurations settings for the server, and stores the result in the $fileHistoryConfig variable.

The second command sets the RetentionInMonths property of the File History configurations object to six months.

The third command sets the File History configuration settings stored in $fileHistoryConfig.

PS C:\> $fileHistoryConfig = Get-WssFileHistoryConfiguration
PS C:\> $FileHistoryConfig.RetentionInMonths = 6
PS C:\> Set-WssFileHistoryConfiguration -Configuration $fileHistoryConfig

Temas relacionados

Get-WssFileHistoryManagementStatus