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

Stop-VESQLRestoreSession

Short Description

Stops restore sessions for Microsoft SQL databases.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

Stop-VESQLRestoreSession [-Session] <VESQLRestoreSession>  [<CommonParameters>]

Detailed Description

This cmdlet stops restore sessions for Microsoft SQL databases.

Stop-VESQLRestoreSession Note:

Mind the following:

  • You can stop restore sessions that are created by means of PowerShell only.
  • The cmdlet will stop sessions that are initiated within the same PowerShell session only.
  • Restore sessions will not stop automatically if you close the PowerShell console without stopping the restore session first.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Session

Specifies a Microsoft SQL restore session that you want to stop.

Accepts the VESQLRestoreSession type.

True

0

True (ByValue)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

Example

This example shows how to stop a restore session for a Microsoft SQL database.

  1. Run Get-VESQLRestoreSession to get the restore session for the Microsoft SQL database that you want to stop. Save the result to the $session variable.
  2. Run Stop-VESQLRestoreSession with the $session variable.

PS C:\PS> $session = Get-VESQLRestoreSession

PS C:\PS> Stop-VESQLRestoreSession -Session $session

Related Commands

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