Set-VBOHistorySettings

In this article

    Short Description

    Modifies job session history settings.

    Syntax

    This cmdlet provides parameter sets that allow you to:

    • Modify session history settings in weeks.

    Set-VBOHistorySettings -KeepOnlyLastXweeks <int32>  [<CommonParameters>]

    • Modify session history settings to keep job sessions in Veeam Backup for Microsoft 365 forever.

    Set-VBOHistorySettings -KeepAllSessions [<switchparameter>] [<CommonParameters>]

    Detailed Description

    This cmdlet modifies the job session history settings. By default, Veeam Backup for Microsoft 365 will keep job sessions forever.

    To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept Pipeline Input

    Accept Wildcard Characters

    KeepOnlyLastXweeks

    Specifies the retention period for job sessions (weeks).

    Default: 53

    True

    Named

    False

    False

    KeepAllSessions

    Defines that Veeam Backup for Microsoft 365 will keep job sessions forever.

    True

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Examples

    Example 1. Setting Job Session Retention Period

    This example shows how to set job session retention period in weeks:

    Set-VBOHistorySettings -KeepOnlyLastXweeks 1

    Example 2. Keeping Job Sessions Forever

    This example shows how to configure Veeam Backup for Microsoft 365 to keep job sessions forever:

    Set-VBOHistorySettings -KeepAllSessions