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

Restore-VEADItem

Short Description

Restores backed-up Active Directory objects and containers.

Syntax

This cmdlet provides parameter sets that allow you to:

  • Restore backed-up Active Directory objects.

Restore-VEADItem -Item <VEADItem[]> -Server <String> -Credential <pscredential> [-UseSSL][-RestoreChangedObjects] [-RestoreDeletedObjects] [-ChangePasswordAtLogon] [-MergeAttributes] [-NewPassword <securestring>] [-GcServer <string>] [-TargetContainer <VEADADContainer>] [-AccountState {SameAsInBackup | Enabled | Disabled}] [-PasswordRestoreAction {OriginalPassword | NoPassword | NewPassword}]  [<CommonParameters>]

  • Restore backed-up Active Directory containers.

Restore-VEADItem -Container <VEADContainer> -Server <String> -Credential <pscredential> [-UseSSL][-RestoreChangedObjects] [-RestoreDeletedObjects] [-ChangePasswordAtLogon] [-MergeAttributes] [-NewPassword <securestring>] [-GcServer <string>] [-TargetContainer <VEADADContainer>] [-AccountState {SameAsInBackup | Enabled | Disabled}] [-PasswordRestoreAction {OriginalPassword | NoPassword | NewPassword}]  [<CommonParameters>]

Detailed Description

This cmdlet restores backed-up Active Directory objects and containers.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

Item

For restore of Active Directory objects.

Specifies an array of Active Directory objects. The cmdlet will restore these objects.

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

True

Named

True (ByValue)

 

Container

For restore of Active Directory containers.

Specifies an Active Directory container. The cmdlet will restore that container.

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

True

Named

True (ByValue)

 

Server

Specifies the target server. The cmdlet will restore Active Directory objects and containers to this server.

String

True

Named

False

 

Credential

Specifies credential records that Veeam Explorer for Microsoft Active Directory will use to connect to the LDAP server.

Accepts the PSCredential object. To get this object, run the Get-Credential cmdlet.

True

Named

False

 

RestoreChangedObjects

Defines whether changed Active Directory objects will be restored.

If you provide this parameter, Veeam Explorer for Microsoft Active Directory will restore backed-up Active Directory objects. If the object is deleted, the cmdlet will skip this object.

Note: To run the cmdlet, you must provide either this or the RestoreDeletedObjects parameter.

Switch

False

Named

False

 

RestoreDeletedObjects

Defines whether deleted Active Directory objects will be restored.

If you provide this parameter, Veeam Explorer for Microsoft Active Directory will restore deleted Active Directory objects. If the object is not deleted, the cmdlet will skip this object.

Note: To run the cmdlet, you must provide either this or the RestoreChangedObjects parameter.

Switch

False

Named

False

 

UseSSL

Defines whether Veeam Explorer for Microsoft Active Directory will establish a secure SSL connection to the target server.

If you provide this parameter, Veeam Explorer for Microsoft Active Directory will connect over SSL to the target server. Otherwise, Veeam Explorer for Microsoft Active Directory will connect to the target server using a non-secure connection.

Switch

False

Named

False

 

GcServer

Specifies a Global Catalog server FQDN or IP address. Veeam Explorer for Microsoft Active Directory will use this server to look for the linked attributes of the objects in the AD domain tree.

If you do not provide this parameter, Veeam Explorer for Microsoft Active Directory will try to detect the Global Catalog server automatically.

String

False

Named

False

 

MergeAttributes

Defines whether multi-valued attributes of Active Directory objects will be merged.

If you provide this parameter, Veeam Explorer for Microsoft Active Directory will merge existing multi-valued attributes of Active Directory objects with multi-valued attributes from a backup file. Otherwise, the production multi-valued attributes will be replaced with multi-valued attributes from a backup file.

Switch

False

Named

False

 

PasswordRestoreAction

Specifies options for restoring user passwords. You can specify either of the following options:

  • OriginalPassword - To restore Active Directory objects with original user passwords.
  • NoPassword - To restore Active Directory objects without restoring user passwords.
  • NewPassword - To restore Active Directory objects with new passwords for users.
    Note: For this option, you must specify a new password in the NewPassword parameter.

Switch

False

Named

False

 

ChangePasswordAtLogon

For the PasswordRestoreAction parameter.

Defines whether users must restore the password after the restore completes. If you provide this parameter, users must change the password at next logon.

Switch

False

Named

False

 

NewPassword

For the PasswordRestoreAction parameter.

Specifies new passwords for users. Veeam Explorer for Microsoft Active Directory will restore Active Directory objects with this password.

Securestring

False

Named

False

 

TargetContainer

For restore to a different container.

Specifies the target container. Veeam Explorer for Microsoft Active Directory will restore objects and containers to this container.

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

False

Named

False

 

AccountState

Specifies a state of an Active Directory account. You can specify either of the following states.

  • SameAsInBackup - to keep an Active Directory account state the same as in a backup.
  • Enabled - to restore an Active Directory account with the enabled state.
  • Disabled - to restore an Active Directory account with the disabled state.

 

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

Restoring Objects

Restore-VEADItemExample 1. Restoring Active Directory Object to Server

Restore-VEADItemExample 2. Restoring Active Directory Object to Different Container

Restore-VEADItemExample 3. Restoring Active Directory Object with Custom Restore Options

Restoring containers

Restore-VEADItemExample 4. Restoring Active Directory Container to Different Server

Restore-VEADItemExample 5. Restoring Active Directory Container to Different Container

Restore-VEADItemExample 6. Restoring Active Directory Container with Custom Restore Options

Related Commands