--- title: "Get-VEODDocumentVersion" description: "Returns other versions of a OneDrive document. Product: Veeam Backup for Microsoft 365 Product Edition: Community, Rental License, Subscription License This cmdlet returns other versions of a document stored in a OneDrive repository." canonical: "https://helpcenter.veeam.com/docs/vbr/explorers_powershell/get-veoddocumentversion.html" breadcrumb: "Veeam Explorers PowerShell Reference > Veeam Explorers PowerShell Reference > Veeam Explorer for Microsoft OneDrive > Get-VEODDocumentVersion" dateModified: "2026-08-18" --- # 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] [] ``` ## 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 VBOOneDriveDocument object. To get this object, run the Get-VEODDocument cmdlet.

VBOOneDriveDocument

True

0

True (ByValue)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Docs. ## Output Object The cmdlet returns the [`VBOOneDriveDocument`](vboonedrivedocument.md)`[]` array that contains other versions of the specified One Drive document. ## Examples ::: example ### 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: 1. Run the [`Get-VEODRestoreSession`](get-veodrestoresession.md) cmdlet. Save the result to the `$session` variable. 2. Run the [`Get-VEODUser`](get-veoduser.md) cmdlet. Set the `$session` variable as the `Session` parameter value. Specify the `Name` parameter value. Save the result to the `$user` variable. 3. Run the [`Get-VEODDocument`](get-veoddocument.md) cmdlet. Specify the `$user` variable as the `User` parameter value. Specify the `Name` parameter value. Save the result to the `$document` variable. 4. Run the `Get-VEODDocumentVersion` cmdlet. Set the `$document` variable as the `Document` parameter value. ::: ## Related Commands - [`Get-VEODRestoreSession`](get-veodrestoresession.md) - [`Get-VEODUser`](get-veoduser.md) - [`Get-VEODDocument`](get-veoddocument.md)