Stop-VBORepositoryMaintenanceSession
Short Description
Stops maintenance sessions.
Syntax
This cmdlet provides the following parameter sets:
-
BySession (Default)Stop-VBORepositoryMaintenanceSession -Session <VBORepositoryMaintenanceSession> [<CommonParameters>]
-
BySessionIdStop-VBORepositoryMaintenanceSession -Id <Guid> [<CommonParameters>]
Detailed Description
This cmdlet stops a maintenance session. After the maintenance session stops, Veeam Backup for Microsoft 365 resumes operations on the backup repositories for which this session was started.
If you stop a maintenance session that has not entered the Running state yet, Veeam Backup for Microsoft 365 cancels this session. The related sessions that Veeam Backup for Microsoft 365 was waiting for are not stopped.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Id |
Specifies an ID of the maintenance session. The cmdlet will stop the maintenance session with this ID. |
|
True |
Named |
False |
|
Session |
Specifies a maintenance session. The cmdlet will stop this session.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Example 1: Stopping Maintenance Session Started for Specific Backup Repository
|
This example shows how to stop a maintenance session started for the Repository 09 backup repository.
Perform the following steps:
|
Example 2: Stopping Maintenance Session by ID
|
This command stops a maintenance session with the ID
|
Related Commands
Get-VBORepositoryReturns backup repositories.Get-VBORepositoryMaintenanceSessionReturns maintenance sessions started for backup repositories.