--- title: "Set-VBOHistorySettings" 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." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/set-vbohistorysettings.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Job Session History Settings > Set-VBOHistorySettings" dateModified: "2026-08-21" --- # Set-VBOHistorySettings ## Short Description Modifies history settings for backup and backup copy job sessions. ## Syntax This cmdlet provides the following parameter sets:
KeepOnlyLastXweeks (Default)
KeepAllSessions
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
KeepAllSessions |
Defines that Veeam Backup for Microsoft 365 will keep job sessions forever. Default: False |
|
True |
Named |
False |
|
KeepOnlyLastXweeks |
Specifies the retention period for job sessions (weeks). Default: 53 |
|
True |
Named |
False |