This is an archive version of the document. To get the most up-to-date information, see the current version.

Restore-VEODDocument

Short Description

Restores OneDrive documents.

Applies to Veeam Backup for Microsoft Office 365

Product Edition: Community, Rental, Subscription

Syntax

This cmdlet provides parameter sets that allow you to:

  • Restore a specific OneDrive document.

Restore-VEODDocument [-Document] <VBOOneDriveDocument[]> [-RestoreChangedItems] [-SkipSharedAccessNotificationSending] [-RestoreDeletedItems] [-RestorePermissions] [-Credential <pscredential>] [-TargetUser <string>] [-TargetFolder <string>] [-Overwrite]  [<CommonParameters>]

  • Restore all documents of a specific OneDrive user.

Restore-VEODDocument [-User] <VBOOneDriveUser> [-RestoreChangedItems] [-SkipSharedAccessNotificationSending] [-RestoreDeletedItems] [-RestorePermissions] [-Credential <pscredential>] [-TargetUser <string>] [-TargetFolder <string>] [-Overwrite]  [<CommonParameters>]

  • Restore documents of multiple OneDrive users.

Restore-VEODDocument [-MultipleUsers] <VBOOneDriveUser[]> [-SkipUnresolvedUsers] [-Credential <pscredential>] [-Office365Credential <pscredential>] [-OnPremisesCredential <pscredential>] [-Overwrite]  [<CommonParameters>]

Detailed Description

This cmdlet allows you to restore OneDrive documents

Restore-VEODDocument Note:

To perform restore operations, you must first start a restore session. For more information on how to start a restore session, see the Start-VBOExchangeItemRestoreSession cmdlet.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Document

Specifies the OneDrive document. This cmdlet will restore specified OneDrive documents.

Accepts the Document object. To get this object, run the  Get-VEODDocument cmdlet.

True

0

True (ByValue)

User

Specifies a OneDrive user. The cmdlet will restore documents of this user.

Accepts the VBOOneDriveUser object. To get this object, run the  Get-VEODDocument cmdlet.

True

0

True (ByValue)

MultipleUsers

Specifies an array of OneDrive users. The cmdlet will restore documents of these users.

Note: This cmdlet will restore documents to the production versions of the same OneDrive users.

Accepts the BOOneDriveUser[] object. To get this object, run the  Get-VEODDocument cmdlet.

True

0

True (ByValue)

RestoreChangedItems

Defines that the cmdlet will restore all versions of OneDrive documents that were modified by the user.

SwitchParameter

False

Named

False

RestoreDeletedItems

Defines that the cmdlet will restore all document items that were deleted by the user.

SwitchParameter

False

Named

False

RestoreSharedAccess

Defines that the cmdlet will restore shared access permissions with the restored document.

SwitchParameter

False

Named

False

SkipSharedAccessNotificationSending

Defines that the cmdlet will not send shared access notifications.

SwitchParameter

False

Named

False

Credential

Specifies the account credentials you want to use for connecting to the OneDrive server.

If omitted, the cmdlet will use the current user Windows account credentials to connect to the OneDrive server.

PSCredential

False

Named

False

TargetUser

Specifies the restore target OneDrive user. This cmdlet will restore OneDrive document to the specified user.

String

False

Named

False

TargetFolder

Specifies the restore target OneDrive folder. This cmdlet will restore OneDrive document to the specified folder.

String

False

Named

False

Overwrite

Defines that the cmdlet will overwrite the items in the target directory with the restored items if these items have the same name.

SwitchParameter

False

Named

False

SkipUnresolvedUsers

Defines that the cmdlet will not restore items of the users that are not resolving.

SwitchParameter

False

Named

False

Office365Credential

Specifies the credentials that the cmdlet will use to authenticate to Microsoft Office 365 organization.

Note: Specify the organization user name in the domain\account format.

PSCredential

False

Named

False

OnPremisesCredential

Specifies the credentials that the cmdlet will use to authenticate to On-Premises SharePoint organization.

Note: Specify the organization user name in the domain\account format.

PSCredential

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Docs.

Examples

Restore-VEODDocumentExample 1. Restoring Specific OneDrive Document

Restore-VEODDocumentExample 2. Restoring OneDrive Documents of Specific User

Restore-VEODDocumentExample 3. Restoring OneDrive Documents of Multiple Users

Related Commands