Stop-VBRSession
Short Description
Stops tape jobs sessions.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VBRSession -Session <VBRSession> [-Wait] [<CommonParameters>] |
Detailed Description
This cmdlet stops running tape jobs sessions.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Session |
Specifies a running tape job session. The cmdlet will stop this session.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Wait |
Defines that the command waits for the process to complete before accepting more input. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Stopping Session for Tape Job
This example shows how to stop the session for the specified tape job.
|
$job = Get-VBRTapeJob -Name "Backup Copy Job" $session = Get-VBRSession -Job $job Stop-VBRSession -Session $session |
Perform the following steps:
- Run the
Get-VBRTapeJobReturns tape jobs. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
Get-VBRSessionReturns job sessions. cmdlet. Set the$jobvariable as theJobparameter value. Save the result to the$sessionvariable. - Run the
Stop-VBRSessioncmdlet. Set the$sessionvariable as theSessionparameter value.
Related Commands
Get-VBRJobReturns existing jobs.Get-VBRSessionReturns job sessions.