Help Center
Choose product document...
Veeam Backup & Replication 9.5 Update 4
Veeam Explorers PowerShell Reference


Short Description

Returns active restore sessions started to perform operations with Microsoft SQL databases.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus


Get-VESQLRestoreSession  [<CommonParameters>]

Detailed Description

This cmdlet returns an array of active restore sessions started to perform operations with Microsoft SQL databases.

Get-VESQLRestoreSession Note:

The cmdlet returns restore sessions initiated in the PowerShell console only. The cmdlet does not return restore sessions running in the Veeam Backup & Replication console.


This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VESQLRestoreSession[] object that contains settings to connect to Veeam Backup & Replication.


This example shows how to get a specific restore session to perform operations with Microsoft SQL databases:

  1. Run the Get-VESQLRestoreSession cmdlet. Save the result to the $session variable.
  2. Specify the necessary ordinal number of the restore session for the $session variable. In our example, it is the fourth restore session in the array.

$session = Get-VESQLRestoreSession


Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Explorers User Guide

Backup and Restore of SQL Server Databases

Veeam Plug-ins for Enterprise Applications

PowerShell Reference

Veeam Explorers PowerShell Reference

RESTful API Reference

Required Permissions

Veeam Availability for Nutanix AHV

Veeam Backup for Microsoft Office 365 Documentation

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation