Get-VEODDocumentVersion
Short Description
Returns other versions of a OneDrive document.
Product: Veeam Backup for Microsoft 365
Product Edition: Community, Rental License, Subscription License
Syntax
|
Get-VEODDocumentVersion [-Document] <VBOOneDriveDocument> [<CommonParameters>] |
Detailed Description
This cmdlet returns other versions of a document stored in a OneDrive repository.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Document |
Specifies OneDrive document. This cmdlet will return other versions of this document.
Accepts the |
True |
0 |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.
Output Object
The cmdlet returns the VBOOneDriveDocument[] array that contains other versions of the specified One Drive document.
Examples
Getting Versions of OneDrive Document
This example shows how to get versions of the document.txt document.
|
$session = Get-VEODRestoreSession $user = Get-VEODUser -Session $session -Name "userAlpha" $document = Get-VEODDocument -User $user -Name "document.txt" Get-VEODDocumentVersion -Document $document |
Perform the following steps:
- Run the
Get-VEODRestoreSessionReturns active restore sessions started to perform operations with backed-up OneDrive items. cmdlet. Save the result to the$sessionvariable. - Run the
Get-VEODUserReturns OneDrive users. cmdlet. Set the$sessionvariable as theSessionparameter value. Specify theNameparameter value. Save the result to the$uservariable. - Run the
Get-VEODDocumentReturns OneDrive documents. cmdlet. Specify the$uservariable as theUserparameter value. Specify theNameparameter value. Save the result to the$documentvariable. - Run the
Get-VEODDocumentVersioncmdlet. Set the$documentvariable as theDocumentparameter value.
Related Commands
Get-VEODRestoreSessionReturns active restore sessions started to perform operations with backed-up OneDrive items.Get-VEODUserReturns OneDrive users.Get-VEODDocumentReturns OneDrive documents.