--- title: "Export-VBRLogs" description: "This cmdlet collects system logs. The log files are written to the folder you specify in this cmdlet. You can use this cmdlet to collect logs you can send to the Veeam support." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/export-vbrlogs.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Logging > Export-VBRLogs" dateModified: "2026-08-19" --- # Export-VBRLogs ## Short Description Collects system logs for export. **Platform**: VMware, Hyper-V **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax This cmdlet provides the following parameter sets:
Server
Job
Entity
Backup
DiscoveredComputer
Tenant
ScaleOutRepository
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies an array of backups. The cmdlet will collect logs of these backups. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Compress |
Defines that the log files will be compressed. Default: Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
Computer |
Specifies an array of protected computers. The cmdlet will collect logs of these computers. Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Entity |
Specifies an array of VMs. The cmdlet will collect logs of these VMs. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
FolderPath |
Specifies the destination folder. The cmdlet will export logs to this folder. |
|
True |
Named |
False |
|
From |
Specifies the start date to collect the logs for export. Enter the date in format set in your workstation Date and Time settings. Note: This parameter is deprecated and will be marked as obsolete in the future. You must re-write your scripts by using the LastDays parameter. Otherwise, the script will return an error. |
|
False |
Named |
False |
|
Job |
Specifies an array of jobs. The cmdlet will collect logs of these jobs. Accepts all kinds of jobs. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
LastDays |
Specifies the number of days for which to collect logs. If you do not specify this parameter, Veeam Backup & Replication will collect logs for the last 1 day. |
|
False |
Named |
False |
|
ScaleOutRepository |
Specifies an array of scale-out backup repositories. The cmdlet will collect logs of these repositories. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Server |
Specifies an array of servers. The cmdlet will collect logs from these servers. Note: The selected servers must be running and available over the network. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Tenant |
Specifies an array of cloud tenants. The cmdlet will collect logs of these cloud tenants. Note: This parameter does not return logs of VMware Cloud Director and Active Directory tenant accounts. Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
To |
Specifies the end date to collect the logs for export. Enter the date in format set in your workstation Date and Time settings. Note: This parameter is deprecated and will be marked as obsolete in the future. You must re-write your scripts by using the LastDays parameter. Otherwise, the script will return an error. |
|
False |
Named |
False |
|
Wait |
Defines that the command waits for the process to complete before accepting more input. |
|
False |
Named |
False |