Veeam Backup 8 Powershell PDF
Veeam Backup 8 Powershell PDF
PowerShell
Version 8.0
Reference
April, 2015
© 2015 Veeam Software.
All rights reserved. All trademarks are the property of their respective owners.
No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system,
or translated into any language in any form by any means, without written permission from Veeam
Software (Veeam). The information contained in this document represents the current view of Veeam
on the issue discussed as of the date of publication and is subject to change without notice. Veeam
shall not be liable for technical or editorial errors or omissions contained herein. Veeam makes no
warranties, express or implied, in this document. Veeam may have patents, patent applications,
trademark, copyright, or other intellectual property rights covering the subject matter of this
document. All other trademarks mentioned herein are the property of their respective owners. Except
as expressly provided in any written license agreement from Veeam, the furnishing of this document
does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
Important! Please read the End User Software License Agreement before using the accompanying software
program(s). Using any part of the software indicates that you accept the terms of the End User
Software License Agreement.
Customer Support
Should you have a technical concern, suggestion or question, please visit our Customer Center Portal
at cp.veeam.com to open a case, search our knowledge base, reference documentation, manage your
license or obtain the latest product release.
Company Contacts
For the most up to date information about company contacts and offices location, please visit
www.veeam.com/contacts.html.
Online Support
If you have any questions about Veeam Backup & Replication, you can use the following resources:
Full documentation set: www.veeam.com/backup-replication-resources.html
Community forum at forums.veeam.com
Intended Audience
The reference is intended for anyone who wants to use the PowerShell extension in Veeam Backup &
Replication. It is primarily aimed at administrators of the virtual environment, consultants, analysts and
any other IT professionals who use Veeam Backup PowerShell.
Related Documentation
The complete set of Veeam Backup & Replication documentation can be found on the product
resources web page at www.veeam.com/vmware-esx-backup/resources.html.
Conventions
In order to help you get the most out of this guide, we have used the following formatting
conventions, terms and abbreviations in the document:
Style Description
Boldface User interface elements (names of dialog windows, buttons and so on).
Italics Titles, special terms and general emphasis, file paths, names of files and folders.
Hyperlink Cross reference links and external hyperlinks
Additionally, important information, notes and tips are provided in the following format:
Note This type of formatting is used for tips, notes and important information the user should pay
attention to.
Note: Veeam Support team does not write PowerShell scripts on demand.
Working with Veeam PowerShell cmdlets and scripts in many respects depends on your imagination,
skills and expertise in Windows PowerShell 2.0. To learn more about Windows PowerShell 2.0 and its
basics, use the book by Dr. Tobias Weltner: Microsoft Master-PowerShell.
The cmdlets operate with objects which they can accept and return. Every object has properties
describing it, and methods that can be performed on it.
For example, the Get-VBRJob cmdlet has the following output:
PS C:\PS> $job | gm
TypeName: Veeam.Backup.Core.CBackupJob
And call a method or a property of the object, for example, view last session results.
Note: Since Veeam Backup & Replication v5 and v6 use Windows PowerShell 2.0, scripts that you have
created with previous versions of Veeam Backup & Replication which used Windows PowerShell 1.0
may not work.
See Next:
Examples of Use
PowerShell Remoting
Interactive PowerShell Help
PS C:\PS> Get-VBRBackup
The similar action is performed by the Restore wizard in Veeam Backup & Replication:
A similar action is performed by the Restore wizard in Veeam Backup & Replication:
Getting the resource pool (you need to indicate the host to look for the resource pool on):
ConnHost : Veeam.Backup.Core.CHost
Type : ResourcePool
Reference: resgroup-14867
Id : ebaf51b0-c972-4080-95de-b590aa6cf73b_resgroup-14867
Name : fileservers
Path : fileservers
Restore session
Restore started
Job 'WinXPx86' is working...
You can also view the restore job result in the Veeam Backup & Replication UI:
PS C:\PS> Get-VBRCommand
DESCRIPTION
This cmdlet returns a list of all tasks performed during the
specified session. You can get the tasks for backup,
replication and backup copy sessions.
Run Get-VSBTaskSession to get the tasks for SureBackup
session.
RELATED LINKS
REMARKS
To see the examples, type: "get-help Get-VBRTaskSession -
examples".
For more information, type: "get-help Get-VBRTaskSession -
detailed".
For technical information, type: "get-help Get-VBRTaskSession
-full".
See also:
Alphabetic List of Veeam Backup & Replication Cmdlets
Veeam PowerShell Objects List
Managing hosts
Add hosts and clusters to your Veeam Backup & Replication management console and administrate
them.
Add various type hosts and clusters to Veeam Backup & Replication console:
Manage proxies:
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Get-VBRCredentials
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a Windows server as a new backup repository named "Win2012Repo". No
authentication is used. All repository settings are used as set default.
• The server to add is obtained with Get-VBRServer and assigned to the $server variable
beforehand.
• The folder that is used as the backup repository is located on "C:\Backup Repository".
• The server type is set to "WinLocal".
Example 3
This command adds an EMC DataDomain storage appliance as a backup repository. The DataDomain
storage is connected over the TCP. The storage appliance is connected to an explicitly set gateway
server.
• The folder path is set to "DataDomain://10.0.0.80:storage/".
• The DataDomain appliance is set with the IP address. The "DFC-" prefix is not set to enable the
connection over TCP.
• The server type is set to "DataDomain".
• The host that will be used as the gateway server is obtained with Get-VBRServer and assigned
to the $server variable beforehand.
• The Username/Password is used to get access to the appliance.
Example 4
This command adds backup repository on a rotated drive connected to a Windows server.
• The server type is set to "WinLocal".
• The "Rotated Drive" switch parameter is used to enable the rotated drive repository
technology.
• The host to which the rotated drive is connected is obtained with Get-VBRServer and
assigned to the $server variable beforehand.
• The folder path is "F:\Repo".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds ESX servers to the Veeam Backup & Replication managing console.
ESX servers are virtual infrastructure servers hosting the virtual machines of your virtual environment.
You need to add the ESX servers to Veeam Backup & Replication to be able to manage your virtual
infrastructure via Veeam Backup & Replication console.
You may add an ESX/ESXi host, vCenter Server or Linux server (use corresponding command for each).
If you are planning to use an ESX host being a part of the vCenter hierarchy, we recommend adding
the corresponding vCenter Server instead of a single ESX host to ensure more flexibility and
convenience at work.
When adding a new ESX server, you will need to provide either username and password or credentials.
This cmdlet provides syntax for both scenarios accordingly.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds the ESX host with 172.16.11.188 IP address. The username is "root" and the
password is "qwerty".
Example 2
This command adds the ESX host with 172.16.11.188 IP address. The credentials to authenticate with
the host are obtained with Get-VBRCredentials and assigned to the $cAdministrator variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds ESXi servers to the Veeam Backup & Replication managing console.
ESXi servers are virtual infrastructure servers hosting the virtual machines of your virtual environment.
You need to add the ESXi servers to Veeam Backup & Replication to be able to manage your virtual
infrastructure via Veeam Backup & Replication console.
You may add an ESX/ESXi host, vCenter Server or Linux server (use corresponding command for each).
If you are planning to use an ESXi host being a part of the vCenter hierarchy, we recommend adding
the corresponding vCenter Server instead of a single ESX host to ensure more flexibility and
convenience at work.
When adding a new ESXi server, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds the ESXi host with 172.16.11.188 IP address. The credentials to authenticate with
the host are obtained with Get-VBRCredentials and assigned to the $cAdministrator variable
beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds Hyper-V clusters to the Veeam Backup & Replication managing console.
If you include your virtual machines in clusters, you need to add the clusters to Veeam Backup &
Replication to be able to manage your virtual infrastructure via Veeam Backup & Replication console.
When you add a cluster, you start managing the VMs that are part of the cluster automatically.
When you remove a Hyper-V cluster from Veeam Backup & Replication managing console, the VMs
that are part of the cluster are removed too. If you want to manage individual VMs with Veeam Backup
& Replication, you need to add them as standalone Hyper-V hosts.
Run Add-VBRHvHost to add a standalone Hyper-V host to Veeam Backup & Replication.
When adding a new Hyper-V cluster, you will need to provide either username and password or
credentials. This cmdlet provides parameter sets for both scenarios accordingly. When you provide
authentication with the Hyper-V cluster, you get equal rights for all clustered VMs.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a new Hyper-V cluster named "HYPCLUSTER01" using credentials. The credentials
object is obtained with Get-VBRCredentials and assigned to the $Administrator variable beforehand.
The description is "Hyper-V Cluster 01".
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds Hyper-V host to the Veeam Backup & Replication managing console.
You need to add the hosts to Veeam Backup & Replication to be able to manage your virtual
infrastructure via Veeam Backup & Replication console. If a Hyper-V host is part of a cluster, add the
Hyper-V cluster instead of standalone Hyper-V host.
Run Add-VBRHvCluster to add a Hyper-V cluster.
When adding a new Hyper-V host, you will need to provide either username and password or
credentials. This cmdlet provides parameter sets for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new Hyper-V server named "HyperVExchange" using username and password.
The user name is "Administrator", and the password is "Password". The description is "Hyper-V
Exchange host".
Example 2
This command adds a new Hyper-V host named "HyperVExchange" using credentials. The credentials
object is obtained with Get-VBRCredentials and assigned to the $Administrator variable beforehand.
The description is "Hyper-V Exchange host".
Applies to
Platform: Hyper-V
For VMware, run Add-VBRViProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet adds a Hyper-V backup proxy server to the Veeam Backup & Replication managing
console.
In the backup infrastructure, the backup proxy actually performs main data handling – retrieving data,
processing it and transferring to the target destination. Use of backup proxies enables you to take the
job processing off the backup server and allows for better scalability of your backup infrastructure.
When you add a proxy, you set a role to a server. To add a new proxy, you need to have the server
added to your Veeam Backup & Replication managing console.
Run Add-VBRHvHost to add a Hyper-V server.
True
Specifies the server which will (ByValue,
Server True Named False
act as a Hyper-V backup proxy. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new proxy. The server that will act as the proxy is obtained with Get-VBRServer
and piped down. The description is "Local Backup Proxy". The max concurrent tasks number is set to 6.
Example 2
This command adds a new proxy. The server that will act as the proxy is obtained with Get-VBRServer
and assigned to the $server variable. The description is "Local Backup Proxy". The max concurrent
tasks number is not set to enable the default value.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds SCVMM (Microsoft System Center Virtual Machine Manager) server to the Veeam
Backup & Replication managing console.
When adding a new SCVMM server, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Credentials Specifies the credentials you want True Named False False
to use for authenticating with the
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds the SCVMM server using a username and a password.
Example 2
This command adds the SCVMM server using credentials. The credentials record is obtained with Get-
VBRCredentials and assigned to the $SCVMMAdministrator variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For authenticating with the Linux host with Username/Password:
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds a Linux server to Veeam Backup & Replication.
The Linux server must have SSH and Perl.
When adding a new Linux server, you will need to provide either username and password or
credentials.
To add a Linux host using an SSH key fingerprint, run this cmdlet with the Confirm parameter.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds the Linux server with the 172.11.16.13 IP address using credentials. The
credentials record is obtained with Get-VBRCredentials and assigned to the $"Linux Administrator"
variable beforehand.
Example 3
This command adds the Linux server with the 172.11.16.13 IP address using an SSH key fingerprint.
• The user name is "Administrator" and the password is "Password".
• The Web service port is set to "22".
• The Confirm parameter is used to verify the connection with SSH key fingerprint.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds an SMB3 cluster to the Veeam Backup & Replication managing console.
If you include your virtual machines in clusters, you need to add the clusters to Veeam Backup &
Replication to be able to manage your virtual infrastructure via Veeam Backup & Replication console.
When you add a cluster, you start managing the VMs that are part of the cluster automatically.
When you remove a Hyper-V cluster from Veeam Backup & Replication managing console, the VMs
that are part of the cluster are removed too. If you want to manage individual VMs with Veeam Backup
& Replication, you need to add them as standalone SMB3 servers.
Run Add-VBRSmbV3Host to add a standalone SMB3 server to Veeam Backup & Replication.
When adding a new SMB3 cluster, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly. When you provide
authentication with the Hyper-V cluster, you get equal rights for all clustered VMs.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new SMB3 cluster named "SMBCLUSTER01" using username and password. The
user name is "Administrator", and the password is "Password". The description is "Hyper-V SMB Share
Cluster 01".
Example 2
This command adds a new SMB3 cluster named "SMBCLUSTER01" using credentials. The credentials
object is obtained with Get-VBRCredentials and assigned to the $Administrator variable beforehand.
The description is "Hyper-V SMB Share Cluster 01".
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds an SMB3 server to the Veeam Backup & Replication managing console.
You need to add the hosts to Veeam Backup & Replication to be able to manage your virtual
infrastructure via Veeam Backup & Replication console. If a SMB3 host is part of a cluster, add the
SMB3 cluster instead of standalone SMB3 host.
Run Add-VBRSmbV3Cluster to add a Hyper-V cluster.
When adding a new SMB3 host, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new SMB3 host named "SMBShare010" using username and password. The user
name is "Administrator", and the password is "Password". The description is "Hyper-V SMB Share
Cluster 01".
Example 2
This command adds a new SMB3 host named "SMBShare010" using credentials. The credentials object
is obtained with Get-VBRCredentials and assigned to the $Administrator variable beforehand. The
description is "Hyper-V SMB Share Cluster 01".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet allows you to add a vCenter Server to Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Default: 443
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds the vCenter server named "vcdev25.domain.local" using a username and a
password. The user name is "Administrator" and the password is "Password".
Example 2
This command adds the vCenter server named "vcdev25.domain.local" using credentials. The
credentials record is obtained with Get-VBRCredentials and assigned to the $"Linux Administrator"
variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Add-VBRHvProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet adds a VMware backup proxy server to the Veeam Backup & Replication managing
console.
In the backup infrastructure, the backup proxy actually performs main data handling – retrieving data,
processing it and transferring to the target destination. Use of backup proxies enables you to take the
job processing off the backup server and allows for better scalability of your backup infrastructure.
When you add a proxy, you set a role to a server. To add a new proxy, you need to have the server
added to your Veeam Backup & Replication managing console.
Run Add-VBRESX or Add-VBRESXi to add a VMware server.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the server which will (ByValue,
Server True Named False
act as a VMware backup proxy. ByProperty
Name)
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new proxy. The server that will act as the proxy is obtained with Get-VBRServer
and piped down. The description is "Local Backup Proxy". The max concurrent tasks number is set to 6.
Example 2
This command adds a new proxy. The server that will act as the proxy is obtained with Get-VBRServer
and assigned to the $server variable. The description is "Local Backup Proxy". The max concurrent
tasks number is not set to enable the default value.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds a Windows server to the Veeam Backup & Replication managing console.
When adding a new Windows server, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new Windows server named "WinServer" using username and password. The
user name is "Administrator", and the password is "Password". The description is "Windows File
Server".
Example 2
This command adds a new Windows server named "WinServer" using credentials. The credentials
object is obtained with Get-VBRCredentials and assigned to the $Administrator variable beforehand.
The description is "Windows File Server".
Applies to
Platform: Hyper-V
For VMware, run Disable-VBRViProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRHvProxy
Detailed Description
This cmdlet allows you to disable a Hyper-V backup proxy. The disabled proxy is not used by any job.
You can enable the poxy at any time by running Enable-VBRHvProxy.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the selected Hyper-V proxy represented by the $proxy variable. The proxy is
obtained with Get-VBRHvProxy and assigned to the variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Disable-VBRHvProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRViProxy
Detailed Description
This cmdlet allows you to temporarily disable a VMware backup proxy. The disabled proxy is not used
by any job.
You can enable the poxy at any time by running Enable-VBRViProxy.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the selected VMware proxy represented by the $proxy variable. The proxy is
obtained with Get-VBRViProxy and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
For VMware, run Enable-VBRViProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRHvProxy
Detailed Description
This cmdlet enables a Hyper-V backup proxy that was previously disabled.
You can disable a proxy by running Disable-VBRHvProxy.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables the Hyper-V proxy represented by the $proxy variable. The needed proxy is
obtained with Get-VBRHvProxy and assigned to the variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Enable-VBRHvProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRViProxy
Detailed Description
This cmdlet allows you to enable a VMware backup proxy.
You can disable a proxy by running Disable-VBRViProxy.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables the selected VMware proxy represented by the $proxy variable. The needed
proxy is obtained with Get-VBRViProxy and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of Hyper-V objects managed by Veeam Backup & Replication.
You can get the list of all Hyper-V objects in your virtual environment or narrow down your search to
hosts, VMs or volumes, or look for instances directly by name.
Run Get-VBRServer to get the list of the Hyper-V hosts.
Return Type
CHvHostItem
CHvVmItem
HostsAnd
Views results as hosts and VMs. False Named False False
VMs
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all Hyper-V objects registered on server named "Hyper-V Host". The server is
obtained with Get-VBRServer and piped down.
Example 2
This command looks for Hyper-V hosts and VMs registered on Hyper-V servers named "HvHost 01" and
"HvHost 02". The servers are obtained with Get-VBRServer and piped down.
Example 3
This command directly looks for the Hyper-V server named "HvExchange".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For looking for datastores connected to a specific host:
Related Commands
Get-VBRServer
Find-VBRViStoragePolicy
Detailed Description
This cmdlet returns a list of datastores connected to the specified ESX(i) host or that are compatible
with a particular VMware storage policy profile.
With both parameter sets, you can narrow down your search by indicating a datastore name.
Return Type
CViDatastoreItem
True
Specifies the ESX(i) host. The
(ByValue,
Server cmdlet will return the True Named False
ByProperty
datastores connected to it.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of datastores connected to the ESXi hosts. The servers are obtained
with Get-VBRServer, sorted by "Type" and piped down.
Example 2
This command looks for the datastores connected to the ESXi host named "ESXiHost". The server is
obtained with Get-VBRServer and piped down. The list of datastores is narrowed down to the
datastore named "MSExchange" and datastores with names starting with "LocalStore_0".
Example 3
This command looks for the datastore named "MSExchange" connected to the server represented by
the $server variable. The server object is obtained with Get-VBRServer and assigned to the variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Return Type
CVcItem
CViFolderItem
CViDatacenterItem
CEsxItem
CViClusterItem
CViResourcePoolItem
CViVmItem
CViVirtualAppItem
CViFolderItem
CViDatacenterItem
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the ESX(i) host you (ByValue,
Server False Named False
want to look for entities on. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of hosts and clusters connected to the ESXi hosts named "ESXiHost 01"
and "ESXiHost 02". The servers are obtained with Get-VBRServer and piped down.
Example 2
This command looks for the list of resource pools connected to the ESXi host named "ESXiHost". The
server is obtained with Get-VBRServer and piped down. The list of resource pools is narrowed down to
the resource pools with names starting with "Veeam".
Example 3
This command looks for the list of VMs having a VMware tag named "Mac OS" within a particular host.
The host is obtained with Get-VBRServer and assigned to the '$server' variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of folders on the specified ESX(i) host.
You can get the list of all folders on the specified ESX(i) host or look for instances directly by name.
Return Type
CViFolderItem
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the ESX(i) host you (ByValue,
Server True Named False
want to look for folders on. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the datastores connected to the ESXi host named "ESXiHost". The server is
obtained with Get-VBRServer and piped down. The list of datastores is narrowed down to the
datastore named "MSExchange" and datastores with names starting with "LocalStore_0".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of resource pools on the specified ESX(i) host.
You can get the list of all resource pools on the specified ESX(i) host or look for instances directly by
name.
Return Type
CViResourcePoolItem
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the ESX(i) host you
(ByValue,
Server want to look for resource pools True Named False
ByProperty
on.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the resource pool named "ResourcePool_05" connected to the ESXi host
named "ESXiHost". The server object is obtained with Get-VBRServer and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Find-VBRViDatastore
Return Type
VBRViStoragePolicy[]
Detailed Description
This cmdlet returns a list of VMware storage policy profiles created on a vCenter server.
You can get the list of all storage policy profiles on the specified server or look for profiles directly by
name or ID.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command returns all storage policy profiles registered for the Veeam.Local host.
The host is obtained with Get-VBRServer and assigned to the '$server' variable.
Example 2
This command returns storage policy profile named "Virtual SAN Default Storage Policy" registered on
the Veeam.Local host.
The host is obtained with Get-VBRServer and piped down.
Example 3
This command returns all storage policy profiles registered for the Veeam.Local host.
The host is obtained with Get-VBRServer and assigned to the '$server' variable.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of backup repositories managed by Veeam Backup & Replication.
You can get the list of all backup repositories or look for instances directly by name.
Return Type
CBackupRepository
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all backup repositories managed by Veeam Backup & Replication.
Get-VBRBackupRepository
Example 2
This command looks for the backup repositories named "Backups Vol2" and for backup repositories
with names starting with "Local".
Applies to
Platform: Hyper-V
For VMware, run Get-VBRViProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of Hyper-V backup proxies managed by Veeam Backup & Replication.
You can get the list of all Hyper-V backup proxies or look for instances directly by name.
Run Get-VBRJobProxy to get the list of proxies assigned to a specific job.
Return Type
CHvProxy
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRHvProxy
Example 2
This command gets the Hyper-V proxies with names containing "Local".
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns the list of source or target proxy servers assigned to a selected job. You will see the
notification if the automatic proxy selection is enabled.
Run Get-VBRViProxy or Get-VBRHvProxy to get a list of all VMware or Hyper-V proxies managed by
Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the list of source proxies assigned to the job named "Backup Job 01". The job
object is obtained with Get-VBRJob and piped down.
Example 3
This command looks for the list of target proxies represented by the $"Job 1" variable. The job object is
obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the local server on which Veeam Backup & Replication is installed.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command looks for the local Veeam Backup & Replication server.
Get-VBRLocalhost
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of hosts connected to Veeam Backup & Replication.
You can get the list of all hosts or narrow down the output to the servers of specific type, or search for
instances directly by name.
Run Find-VBRViEntity or Find-VBRHvEntity to look for VMware or Hyper-V virtual objects registered on
these hosts.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the servers named "Active_Directory".
Example 2
This command looks for the VM named "Hv_DNS" registered on a Hyper-V server.
Applies to
Platform: VMware
For Hyper-V, run Get-VBRHvProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of VMware backup proxies managed by Veeam Backup & Replication.
Run Get-VBRJobProxy to get the list of proxies assigned to a specific job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all VMware proxies.
Get-VBRViProxy
Example 2
This command looks for the proxy named "LocalProxy".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Detailed Description
This cmdlet allows you to remove the specified backup repository from Veeam Backup & Replication.
When you remove a backup repository, Veeam Backup & Replication unassigns the repository role
from the server, so it is no longer used as a backup destination. The actual server remains connected
to Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the backup repository (ByValue,
Repository True Named False
you want to remove. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the backup repository represented by the $repository variable. The repository
is obtained with Get-VBRBackupRepository and assigned to the variable beforehand.
Remove-VBRBackupRepository $repository
Applies to
Platform: Hyper-V
For VMware, run Remove-VBRViProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRHvProxy
Detailed Description
This cmdlet allows you to remove the specified Hyper-V backup proxy from Veeam Backup &
Replication.
When you remove a backup proxy, Veeam Backup & Replication unassigns the proxy role from the
server, so it is no longer used as a backup proxy. The actual server remains connected to Veeam
Backup & Replication.
Note: You cannot remove a backup proxy that is explicitly selected in any backup, replication or VM copy
job. To remove such a proxy, you need to delete all job references to it first.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the Hyper-V backup (ByValue,
Proxy True Named False
proxy you want to remove. ByProperty
Name)
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the proxies named "Proxy 01" and "Proxy 03". The proxies are obtained with
Get-VBRHvProxy and piped down.
Example 2
This command removes the proxy represented by the $proxy variable. The proxy is obtained with Get-
VBRHvProxy and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet removes a specified VMware or Hyper-V host from Veeam Backup & Replication.
When you remove a host, you only stop managing it via your Veeam Backup & Replication console.
The host is not deleted as well as data stored on it, i.e. the backup files. You can import these backup
files later to the Veeam Backup & Replication console by running Import-VBRBackup.
Note that when you remove virtual hosts from your Veeam Backup & Replication managing console,
the backups of the removed hosts stay in the Veeam Backup & Replication database and repository.
Note: A server that has any dependencies cannot be deleted. For example, you cannot delete a server that
is referenced by a backup or replication job, or that performs the role of a backup proxy or repository.
To remove such a server, you will need to delete all referencing jobs or objects first.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes a Virtual Center named "vCenter01". The server is obtained with Get-
VBRServer, selected by the Type and Name parameters, and piped down.
Example 2
This command removes the server represented by the $session variable. The server object is obtained
with Get-VBRServer and assigned to the variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Remove-VBRHvProxy.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRViProxy
Detailed Description
This cmdlet removes the specified VMware backup proxy from Veeam Backup & Replication.
When you remove a backup proxy, Veeam Backup & Replication unassigns the proxy role from the
server, so it is no longer used as a backup proxy. The actual server remains connected to Veeam
Backup & Replication.
Note: You cannot remove a backup proxy that is explicitly selected in any backup, replication or VM copy
job. To remove such a proxy, you need to delete all job references to it first.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the proxy you want to (ByValue,
Proxy True Named False
remove. ByProperty
Name)
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the proxies named "Proxy 01" and "Proxy 03". The proxies are obtained with
Get-VBRViProxy and piped down.
Example 2
This command removes the proxy represented by the $proxy variable. The proxy is obtained with Get-
VBRViProxy and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Get-VBRTapeServer
Get-VBRTapeLibrary
Get-VBRBackupRepository
Get-VBRCloudProvider
Get-VBRReplica
Detailed Description
This cmdlet performs rescan for the following backup infrastructure components added to Veeam
Backup & Replication:
• Hosts and clusters
• Tape servers
• Tape libraries
• Backup repositories
• Cloud providers
• Veeam backup database for new replica restore points
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command rescans a backup repository named "Win2012Repo". The repository is obtained with
Get-VBRBackupRepository and piped down.
Example 2
This command rescans a tape server named "srv01.veeam.local". The tape server is obtained with Get-
VBRTapeServer and assigned to the 'tapesrv' variable. The Wait parameter is used to prevent the
console from taking input until the rescanning ends.
Example 3
This command updates information about the 'Webservices' replica restore points. The replica is
obtained with Get-VBRReplica and assigned to the '$webservices' variable.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupRepository
Get-VBRServer
Get-VBRCredentials
Detailed Description
This cmdlet modifies a selected backup repository. To modify settings, you need to enter the
corresponding parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Get-VBRViProxy / Get-VBRHvProxy
Detailed Description
This cmdlet assigns a specific proxy to a job or enables automatic proxy selection.
When you create a job, the proxy server is set automatically by default. With this cmdlet, you can
assign a custom proxy to a job or set the automatic proxy selection back. This cmdlet provides two
scenarios for each case.
You can run this cmdlet with backup and replica jobs.
Important! Note that if you want to set a custom proxy you should make sure that the proxy server is added to
Veeam Backup & Replication console, otherwise you will not be able to assign it to the job. The
custom proxy server should be configured appropriately. Read more about proxy server settings in
Veeam Backup & Replication user guide at http://www.veeam.com/vmware-backup/help-center.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command assigns the custom VMware source proxy to the jobs named "Backup Job 01" and
"Backup Job 02". The jobs are obtained with Get-VBRJob and piped down. The proxy to assign is
obtained with Get-VBRViProxy and assigned to the $"SourceProxy" variable beforehand. The -Target
parameter is not set to enable the source proxy allocation.
Example 2
This command assigns the custom Hyper-V target proxy to the job represented by the $job variable.
The proxy to assign is obtained with Get-VBRHvProxy and assigned to the $proxy variable beforehand.
The -Target parameter is set to enable target proxy allocation.
Example 3
This command sets the automatic source proxy selection mode to the jobs named "Backup Job 01"
and "Backup Job 02". The jobs are obtained with Get-VBRJob and piped down. The -Target parameter
is not set to enable the source proxy allocation.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupRepository
Detailed Description
This cmdlet allows you to rescan a specified backup repository for details about backups stored on it.
You can perform the repository rescan i.e. in case you have imported or copied backups.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies backup repository (ByValue,
Repository True Named False
you want to rescan. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command rescans the repository named "Local Repository 01". The needed repository object is
obtained with Get-VBRBackupRepository and piped down.
Example 2
This command rescans the repository represented by the $repository variable. The needed repository
object is obtained with Get-VBRBackupRepository and assigned to the variable beforehand.
Created by
None
Properties
Property Type Description
UpdateTime DateTime Date and time of the last storage policy profile modification.
Unique identifier of the vCenter server where the storage policy profile is
HostId GUID
created.
See also:
Creating VMware Backup Job
Creating Hyper-V Backup Job
Creating VMware Replica Job
Creating Hyper-V Replica Job
Backup jobs:
Replication jobs:
Administrating jobs
Start, stop or manage the created jobs.
Set-
Sets advanced backup options Set-
VBRJobAdvancedBackupOpti
for a selected job VBRJobAdvancedBackupOptions
ons
Set- Set-
Sets advanced notification
VBRJobAdvancedNotification VBRJobAdvancedNotificationOpt
options for a selected job
Options ions
Set-
Sets advanced storage options Set-
VBRJobAdvancedStorageOpti
for a selected job VBRJobAdvancedStorageOptions
ons
Applies to
Platform: Hyper-V
For VMware, run Add-VBRViBackupJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupRepository
Find-VBRHvEntity
Detailed Description
This cmdlet creates a new Hyper-V backup job.
Note that when you create a backup job, you need to run it manually unless you enable a job
schedule.
Run Start-VBRJob to start the created job.
Run Set-VBRJobSchedule to set schedule for the job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command creates a backup job named "Exchange Backup". The VMs to backup are obtained with
Find-VBRHvEntity and piped down. The backup repository is obtained with Get-VBRBackupRepository
and assigned to the $Repository variable beforehand. The description is "Hyper-V Exchange Backup".
Applies to
Platform: Hyper-V
For VMware, run Add-VBRViJobObject.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Find-VBRHvEntity
Detailed Description
This cmdlet allows to add VM(s) to an existing job.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a VM represented by $Vm variable to the job represented to $"Backup Hv Job"
variable. The variables are assigned beforehand.
Applies to
Platform: Hyper-V
For VMware, run Add-VBRViReplicaJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Find-VBRHvEntity
Get-VBRBackupRepository
Detailed Description
This cmdlet creates a new Hyper-V replication job.
Replication is a process of copying a VM from its primary location (source host) to a destination
location (redundant target host). Veeam Backup & Replication creates an exact copy of a VM (replica),
registers it on the target host and maintains it in sync with the original VM.
You can select a data source from which VM data must be read:
Actual VM: Veeam Backup & Replication will copy an actual VM from production storage. The
created replica will mirror an actual VM state.
Use the Entity parameter to indicate the VMs you want to replicate.
Replica from backup files: Veeam Backup & Replication will build a replica from backup files
stored on a backup repository. The created replica will be in the latest state the VM is
available in backups.
Use the Entity parameter to indicate the VMs you want to replicate and the BackupRepository
parameter to set the repository from where the backup files must be read.
Note that when you create a replica job, you need to run it manually unless you enable a job schedule.
Run Start-VBRJob to start the created job manually.
Run Set-VBRJobSchedule to set schedule for the job and run it automatically.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a replica of an SQL server from backup. The replica is located on another host.
• The VM to replicate is obtained with Find-VBRHvEntity and assigned to the '$sql02' variable.
• The host to locate the replicated VM on is obtained with Get-VBRServer and assigned to the
'$targetserver' variable beforehand.
• The replica will be built from the SQL02 backup files that are located on a backup repository.
The repository is obtained with Get-VBRBackupRepository and assigned to the '$repository'
variable beforehand.
• The description of the job is "SQL02 replication".
Applies to
Platform: VMware
For Hyper-V, run Add-VBRHvBackupJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupRepository
Find-VBRViEntity
Detailed Description
This cmdlet creates a new VMware backup job.
Note that when you create a backup job, you need to run it manually unless you enable a job
schedule.
Run Start-VBRJob to start the created job.
Run Set-VBRJobSchedule to set schedule for the job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command creates a backup job named "Exchange Backup". The VMs to backup are obtained with
Find-VBRViEntity and piped down. The backup repository is obtained with Get-VBRBackupRepository
and assigned to the $Repository variable beforehand. The description is "VMware Exchange Backup".
Applies to
Platform: VMware
For Hyper-V, run Add-VBRHvJobObject.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Find-VBRViEntity
Detailed Description
This cmdlet adds VM(s) to an existing job.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a VM represented by $Vm variable to the job represented to $job variable. The
variables are assigned beforehand.
Applies to
Platform: VMware
For Hyper-V, run Add-VBRHvReplicaJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Find-VBRViEntity
Find-VBRViDatastore
Find-VBRViStoragePolicy
Find-VBRViResourcePool
Find-VBRViFolder
Get-VBRBackupRepository
Get-VBRViServerNetworkInfo
Detailed Description
This cmdlet creates a new VMware replication job.
Replication is a process of copying a VM from its primary location (source host) to a destination
location (redundant target host). Veeam Backup & Replication creates an exact copy of a VM (replica),
registers it on the target host and maintains it in synch with the original VM.
You can select a data source from which VM data must be read:
Actual VM: Veeam Backup & Replication will copy an actual VM from production storage. The
created replica will mirror an actual VM state.
Use the Entity parameter to indicate the VMs you want to replicate.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a new job named "DC Replication Job" replicating a VM named "DC".
• The VM to replicate is obtained with Find-VBRViEntity and piped down.
• The server and the resource pool to locate the replica are obtained with Get-VBRServer and
Find-VBRViResourcePool and assigned to the $server and $pool variables accorgingly
beforehand.
• The replica is created with the suffix "_replicated".
• The description of the job is "DC Replication Job".
Example 2
This command creates a new job named "DC Replication Job" replicating a VM represented by the
$vm variable.
• The VM to replicate is obtained with Find-VBRViEntity and assigned to the variable
beforehand.
• The server where the replica will reside is obtained with Get-VBRServer and assigned to the
$server variable beforehand.
• The datastore and the resource pool to locate the replica are obtained with Find-
VBRViDatastore and Find-VBRViResourcePool and assigned to the $datastore and $pool
variables accorgingly beforehand.
• The replica is created with the suffix "_replicated".
• The description of the job is "DC Replication Job".
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet clones an existing job. You can use the cloned job, for example, as a template, as it retains
all settings of the primary job. The cloned job is created with the name of the primary job with
'_clone<clone sequence number>' suffix.
You can run this cmdlet with backup, replication and copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
clone. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command clones the job represented by the $job variable. The job is obtained with Get-VBRJob
and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet puts a selected job on hold. The job and its settings are not deleted from Veeam Backup &
Replication. You can enable the job at any time by running Enable-VBRJob.
You can run this cmdlet with backup, replication and copy jobs.
Run Stop-VBRJob to stop the job once without disabling it.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the job represented by the $job variable. The job object is obtained with Get-
VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet disables guest file system indexing in the selected job. The guest file system indexing
settings are not deleted.
Guest file system indexing is cataloging the guest VM files during the backup. Indexing helps you
recognize files stored on guest VM. If you backup your VMs without guest file system indexing option,
you will not be able to perform guest OS files restore.
You can run this cmdlet with backup, replication and copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the guest file system indexing option in the job represented by the $job
variable. The job object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet disables job schedule. The schedule settings are not deleted. When you disable a job
schedule, you can launch the job manually by running Start-VBRJob.
You can run this cmdlet with backup, replication and copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the job represented by the $job variable. The job object is obtained with Get-
VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet disables the VSS settings in the selected job. The VSSs settings are not deleted form the
job.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
You can run this cmdlet with backup, replication and copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables the VSS options in job represented by the $job variable. The job object is
obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet enables a disabled job. When you disable a job, you put it on hold until you enable it with
this cmdlet. You can disable a job by running Disable-VBRJob.
You can run this cmdlet with backup, replication and copy jobs.
Run Start-VBRJob to start a job once.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables the job represented by the $job variable. The job object is obtained with Get-
VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet enables guest file system indexing in the selected job.
Guest file system indexing is cataloging the guest VM files during the backup. Indexing helps you
recognize files stored on guest VM. If you backup your VMs without guest file system indexing option,
you will not be able to perform guest OS files restore.
You can enable the guest file system indexing settings in case you have these settings set beforehand.
Use this cmdlet to enable the indexing option that was disabled with Disable-
VBRJobGuestFSIndexing.
You can run this cmdlet with backup and replica jobs including vCloud jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRJob -Name Name "Backup Job 01", "Backup Job 02" | Enable-
VBRJobGuestFSIndexing
Example 2
This command enables the guest file system indexing option in the job represented by the $job
variable. The job object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet enables job schedule.
You can enable the job schedule in case you have the schedule set beforehand. Use this cmdlet to
enable the job schedule that was disabled with Disable-VBRJobSchedule.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRJob -Name "Backup Job 01", "File Copy Job 02" | Enable-
VBRJobSchedule
Example 2
This command enables the schedule for job represented by the $"Backup Job 01" variable. The job
object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet enables the VSS settings in the selected job.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
You can enable the VSS settings in case you have these settings set beforehand. Use this cmdlet to
enable the VSS settings that were disabled with Disable-VBRJobVSSIntegration.
You can run this cmdlet with backup and replica jobs including vCloud jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables the VSS option in the job represented by the $"Backup Job 01" variable. The
job object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of all virtual networks to which a selected Hyper-V host is connected.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the list of networks to which the "01Veeam.Local" host is connected. The host
is obtained with Get-VBRServer and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of jobs stored in Veeam Backup & Replication database.
With this cmdlet, you can get the following jobs:
• Backup Jobs
• Replication Jobs
• Backup Copy Jobs
• VM Copy Jobs
• File Copy Jobs
You can get the list of all jobs or look for instances directly by name.
Run Get-VBRBackupSession or Get-VBRTaskSession to get the information on job session or session
tasks.
Run Get-VBRTapeJob to get tape jobs.
Run Get-VSBJob to get SureBackup jobs.
Run Get-VBREPJob to get Endpoint backup jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns the list of objects in a specified job. The job objects are VMs, VM containers,
datastores or resource pools.
You can run this cmdlet for backup, replication, backup copy, VM copy or file copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
get the objects of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the VM named "SharePoint" in the job represented by the $job variable. The
job is obtained with Get-VBRJob and assigned to the variable beforehend.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJobObject
Detailed Description
This cmdlet returns the list of VSS settings set for a specific VM in job.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
Run Get-VBRJobVSSOptions to get the list of VSS options of a specific job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the VMs or VM
(ByValue,
ObjectInJob containers for which you want True 1 False
ByProperty
to get VSS options.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the VSS settings of the VM represented by the $vm variable. The VM is
obtained with Get-VBRJobObject and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns the list of job settings for a selected job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
get the options of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of options of the job named "Fileserver Replica". The job is obtained
with Get-VBRJob and piped down.
Example 2
This command looks for the list of options of the job represented by the $"Fileserver Replica" variable.
The job is obtained with Get-VBRJobObject and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns a list of job scheduling options for a selected job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
get the scheduling options of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of schedulling options of the job named "ActiveDirectory Copy Job".
The job is obtained with Get-VBRJob and piped down.
Example 2
This command looks for the list of options of the job represented by the $"ActiveDirectory Copy Job"
variable. The job is obtained with Get-VBRJobObject and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns the list of VSS settings for a selected job.
Run Get-VBRJobObjectVssOptions to get the list of VSS options set for specific objects in a job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
get the VSS options of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of VSS options of the job named "ActiveDirectory Backup". The job is
obtained with Get-VBRJob and piped down.
Example 2
This command looks for the list of options of the job represented by the $ad_backup variable. The job
is obtained with Get-VBRJobObject and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of VM replicas managed by Veeam Backup & Replication. You can look for
all VM replicas or for replicas created by a particular replication job.
With this cmdlet, you call get the replicas that are managed by your backup console. In case you have
removed some replicas from the Veeam Backup console, but they remain on disk, you will not be able
to get them.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all replicas managed by Veeam Backup & Replication.
Get-VBRReplica
Example 2
This command looks for the replicas created with the "DC Replica" replication job.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet returns the list of re-IP rules configured for a selected replication job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
replication job for
which you want to get True (by Value
the list of the re-IP FromPipeline,
Job True Named False
rules. ValueFromPipeline
ByPropertyName)
Accepts CBackupJob
object.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the re-IP rules set for the job represented by the '$job' variable. The job is
obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns the list of all virtual networks to which a selected VMware host is connected.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the list of networks to which the 'srv01.veeam.local' host is connected. The
host is obtained with Get-VBRServer and piped down.
Example 3
This command looks for a particular network that is connected to the 'srv01.veeam.local' host.
• The host is obtained with Get-VBRServer and piped down. The obtained array of networks is
assigned to the '$networks'.
• The needed network is obtained by addressing the index of the corresponding element of
the array and assigned to the '$targetnet' variable.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet lets you edit job settings of backup jobs, replication jobs or selected VMs.
This cmdlet returns the CJobOptions object containing the default settings of the job you want to
edit. You can customize any setting that you want to apply to the job. This object is then used in the
Set-VBRJobOptions cmdlet.
You can edit settings of jobs (including vCloud backup jobs), VMs or replication jobs by running this
cmdlet with -ForJob, -ForObject or -ForReplicaJob parameters respectively.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
$NewScheduleOption = New-VBRJobScheduleOptions
$NewScheduleOption.OptionsPeriodically.Enabled = $True
$NewScheduleOption.OptionsPeriodically.FullPeriod = 120
$Job = Get-VBRJob -Name "Backup Job 1"
Set-VBRJobScheduleOptions -Job $Job -Options $NewScheduleOption
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet lets you edit scheduling settings of jobs.
This cmdlet returns the ScheduleOptions object containing the default scheduling settings of the job
you want to edit. You can customize any setting that you want to apply to the job. This object is then
used in the Set-VBRJobScheduleOptions cmdlet.
You can use the ScheduleOptions object with backup, replication or copy jobs.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet lets you edit VSS settings of backup jobs, replication jobs or selected VMs.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
This cmdlet returns the CVssOptions object containing the VSS settings of the job you want to edit.
You can customize any setting that you want to apply to the job. This object is then used in the Set-
VBRJobVssOptions cmdlet.
You can edit settings of backup jobs (including vCloud backup jobs), Vms or replication jobs by
running this cmdlet with -ForJob, -ForObject or -ForReplicaJob parameters respectively.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This example helps you get the CVssOptions object with customized VSS settings for a backup job.
• The Enable setting is set to True,
• The GuestFSIndexingType setting is set to "Everyfolders",
• The TransactionLogsTruncation setting is set to Always.
PS C:\PS> New-VBRJobVssOptions
PS C:\PS> $o=New-VBRJobVssOptions
PS C:\PS> $o.Enabled=$true
PS C:\PS> $o.GuestFSIndexingType="Everyfolders"
PS C:\PS> $o.TransactionLogsTruncation="Always"
PS C:\PS> $o
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Detailed Description
This cmdlet creates a VBRViReplicaReIpRule object containing a list of rules for different IP addressing
scheme. This object is then further used for creating or modifying replication jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This example shows how to set a re-IP rule to an existing replica job.
• The re-IP rule is assigned to the '$reiprule' variable that was created in the 'Example 1'.
• To set the re-IP rule, the replication job is edited with Set-VBRViReplicaJob. The job is
obtained with Get-VBRJob and assigned to the '$replicajob' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet removes a selected backup, replication or backup copy job from Veeam Backup &
Replication console and database.
Run Remove-VSBJob to remove SureBackup jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the job represented by the $job variable. The job is obtained with Get-VBRJob
and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJobObject
Detailed Description
This cmdlet allows you to remove VMs or VM containers from existing backup, replication or copy job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies objects (VMs and VM
(ByValue,
Objects containers) you want to True 2 False
ByProperty
remove.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRReplica
Detailed Description
This cmdlet removes a selected replicated VM.
You can delete the replica completely, or only remove it from Veeam Backup & Replication managing
console. In the latter case, you will not delete the VM but only stop managing it with Veeam Backup &
Replication; the replica VM will stay on target host.
When replica is created, Veeam Backup & Replication maintains it in sync with the original VM by
running the replication job. When you delete a replica from your managing console, it is no longer
synchronized.
To stop synchronizing a replica without deleting it from the console, you need to stop or delete the
corresponding replication job.
Run Stop-VBRJob or Remove-VBRJob to stop or remove a replication job.
This cmdlet can only remove all VMs in the replication job. If you want to remove some particular VMs,
you need to do it with Veeam user interface.
Note: When you remove a replica from Veeam Backup & Replication console, you can not bring it back by
means of PowerShell. Use replica seeding option in Veeam Backup & Replication console interface to
restore a removed replica in your managing console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the replicas named "DC_replica01" and "DC_replica02" from Veeam Backup &
Replication. The replicated VMs are obtained with Get-VBRReplica and piped down.
Example 2
This command removes the replicas named "DC_replica01" and "DC_replica02" from disk. The
replicated VMs are obtained with Get-VBRReplica and piped down.
Example 3
This command removes the replicated VM represented by the $replica variable from disk. The
replicated VM is obtained with Get-VBRReplica and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet clears and resets change tracking data for a VM or specific virtual disk (VHD).
Change tracking data is history of changes kept for each data block. Using the changed block tracking
(CBT) mechanism allows to reduce the backup time as the backup process compares the CBT data
instead of scanning all data. You may need to reset the change tracking data in case it was corrupted.
This cmdlet provides two scenarios. You can reset change tracking for a specific VM or for a specific
virtual disk (VHD).
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command resets change tracking data for the specified virtual disk. The VM is located on host
represented by the $server variable. The server object is obtained with Get-VBRServer and assigned to
the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet clears the custom settings of the specified job and restores their default values.
Note that the VSS settings (application-aware image processing and guest file system indexing) are
not reset with this cmdlet. Run Reset-VBRJobVssOptions to clear the job VSS settings. Run Disable-
VBRJobVSSIntegration or Disable-VBRJobGuestFSIndexing to temporarily disable the application-
aware image processing and guest file system indexing settings.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True Named False
edit. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command sets default settings to the job represented by the $job variable. The job object is
obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets the default scheduling options to the selected job. When you clear the schedulling
options of a job, you need to run the job manually.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True (ByValue,
Job Specifies job you want to edit. True Named ByProperty True
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command sets default schedule options to backup jobs named "Fileserver Backup Job" and
"Fileserver Copy Job". The jobs object is obtained with Get-VBRJob and piped down.
Example 2
This command sets default schedule options to the job represented by the $job variable. The job
object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet clears the custom VSS settings of the specified job and restores their default values.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
You can run this cmdlet with any kind of jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True Named False
edit. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command sets default VSS settings to the job represented by the $job variable. The job object is
obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets advanced backup options for the selected job.
You can select backup method: reverse incremental or incremental, and set schedule settings for
synthetic full backups.
Read more about advanced backup job settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command sets the following backup options for the backup job represented by the $job variable:
• The backup algorithm is set to ReverseIncremental,
• The active full backup schedule is set to monthly.
The job object is obtained with Get-VBRJob, assigned to the variable beforehand and piped down.
Example 2
This command sets the following backup options for all backup jobs:
• The backup algorithm is set to Incremental,
• The synthetic full backup is enabled on every Sunday and Thursday,
• The previous fulls are set to rollback to chain of increments to save disk space,
• The active full backup schedule is set to every second Sunday monthly.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets special options for the selected Hyper-V job.
In case you cannot use application-aware image processing, you can enable a Hyper-V quiescence
mechanism to backup data that can be changed during the backup.
Read more about Hyper-V job settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command edits advanced job settings to backup job named "Backup Job 01":
• The Hyper-V quiescence is enabled.
• The crash consistent backup is enabled.
• The changed block data is enabled.
• The swap file is excluded form backup.
The job is obtained with Get-VBRJob and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets notification options for the selected job.
You can set SNMP and email notifications on job run results.
Important! Email notification can be configured for jobs only in case that the global email notifications are
enabled. Note that you cannot enable the global email notifications with Veeam PowerShell. Read
more about job notification settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command sets SNMP and email notifications for the backup job named "Backup Job 01". The job
object is obtained with Get-VBRJob and piped down.
Example 2
This command turns off the previously set email notification for the backup job named "Backup Job
01". The job object is obtained with Get-VBRJob and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets advanced options for the selected job.
You can set:
• Integrity check: Veeam Backup and Replication will check every full backup file for integrity
and recovery availability.
• Custom data retention period: if a VM included in this job is deleted, its data will be stored
for the specified period. When this period ends, the backup files are deleted. The default
period is 14 days.
• Post job activity: you can specify a command you want to run after the job run, i.e. to sent a
job result report. You can schedule this command to run i.e. every second job run or on
specific days.
Read more about advanced job settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command edits advanced job settings to backup job named "Backup Job 01":
• The integrity check is enabled.
• The data retention is not set to leave the default settings.
• The post job activity is enabled to run the "report.exe" command periodically after every fifth
job run.
The job is obtained with Get-VBRJob and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Get-VBREncryptionKey
Detailed Description
This cmdlet sets storage options for the selected job.
You can enable backup data deduplication and customize data units compression level and size.
Read more about job storage settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command applies the optimal compression level (=5) to all jobs. The jobs are obtained with Get-
VBRJob and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets special options for the selected VMware job.
Read more about VMware job settings in Veeam Backup & Replication user guide at
http://www.veeam.com/vmware-backup/help-center.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command edits advanced job settings to backup job named "Backup Job 01":
• The VMware quiescence is enabled.
• The changed block data is enabled.
• The CBT is forced to use despite the ESX host settings.
• The swap file is excluded form backup.
The job is obtained with Get-VBRJob and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJobObject
New-VBRJobVssOptions ([-ForObject])
Get-VBRCredentials
Detailed Description
This cmdlet applies a set of customized VSS settings to the specific objects in job or sets credentials to
authenticate with a specific objects in job.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
To apply the set of customized settings you need to first create a CVssOptions object which unifies all
the VSS options you want to apply to the job object. The CVssOptions object is created with the help
of the New-VBRJobVssOptions cmdlet.
Run Set-VBRJobVssOptions to set the VSS options to the whole job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the VMs and VM
(ByValue,
Object containers for which you want True 1 False
ByProperty
to change VSS settings.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command applies custom VSS options to the VM named "AD_01" included in the backup job
named "Active Directory Backup". The job object and the VM object are obtained with Get-VBRJob
and Get-VBRJobObject accordingly and piped down. The object containing the set of customized VSS
options is obtained with New-VBRJobVssOptions ([-ForObject] option) and assigned to the $options
variable beforehand.
Example 2
This command applies custom VSS options to the VMs running Active Directory represented by the
$"AD_VMs" variable. The VMs object is obtained with Get-VBRJobObject and assigned to the variable
beforehand. The object containing the set of customized VSS options is obtained with New-
VBRJobVssOptions ([-ForObject] option) and assigned to the $options variable beforehand.
Example 3
This command sets credentials to authenticate with the SQL server included in the SharePoint backup
job. The VM object is obtained with Get-VBRJobObject and piped down. The job object to look for the
VM in is obtained with Get-VBRJob and assigned to the $"SharePoint Backup" variable beforehand.
The credentials record to apply to the VM is obtained with Get-VBRCredentials and assigned to the
$"Administrator" variable beforehand.
Example 4
This command sets credentials to authenticate with the VM represented by the $"SharePoint_SQL"
variable. The VM object is obtained with Get-VBRJobObject and assigned to the variable beforehand.
The credentials record to apply to the VM is obtained with Get-VBRCredentials and assigned to the
$"Administrator" variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
New-VBRJobOptions
Detailed Description
This cmdlet applies a set of customized settings to a selected job.
To apply the set of customized settings you need to first create a CJobOptions object which unifies all
the options you want to apply to the job. The CJobOptions object is created with the New-
VBRJobOptions cmdlet.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the job you want to (ByValue,
Job True 1 False
edit. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command applies custom settings to the backup job represented by the $job variable. The job
object is obtained with Get-VBRJob andassigned to the variable beforehand. The object containing
the set of customized options is obtained with New-VBRJobOptions and assigned to the $options
variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet sets custom schedule settings to the selected job.
You can schedule the job to run:
• Daily on specific time, on specific days of week,
• Monthly on specific time, on specific days of month, on specific months,
• Periodically within specified period of time or continuously,
• After a certain job you specify.
Daily:
Daily Sets job schedule to daily run. False Named False False
Monthly:
Periodically:
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command schedules all replication jobs to monthly run. The replication jobs are obtained with
Get-VBRJob and piped down. The jobs are scheduled to run every last Saturday at 12:00 in February,
May, August and December.
Example 3
This command schedules the job represented by the $job variable to run every 12 hours. The job is
obtained with Get-VBRJob and assigned to the variable beforehand.
Example 4
This command schedules the job represented by the $job variable to run after the SureBackup job
named SureBackup Job 01. The SureBackup Job 01 is obtained with Get-VSBJob and piped down. The
backup job is obtained with Get-VBRJob and assigned to $job variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
New-VBRJobScheduleOptions
Detailed Description
This cmdlet applies customized scheduling options to a selected backup, replication or copy job.
To customize the scheduling options you need to first run the New-VBRJobScheduleOptions cmdlet.
New-VBRJobScheduleOptions returns the ScheduleOptions object containing the set of default
scheduling options.
Run Set-VSBJobScheduleOptions to set scheduling options to SureBackup job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command applies the customized scheduling options to the job represented by the $job variable.
The job is obtained with Get-VBRJob and assigned to the variable beforehand. The options to apply
are set to the $"Schedule Options" variable beforehand by running New-VBRJobScheduleOptions.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
New-VBRJobVssOptions
Get-VBRCredentials
Detailed Description
This cmdlet applies a set of customized VSS settings to a selected job.
VSS (Volume Shadow Services) is a Windows OS service allowing to copy files of running applications
that can be modified at the moment of copying. The VSS-aware applications typically are Active
Directory, Microsoft SQL, Microsoft Exchange, Sharepoint, etc. To create a transactionally consistent
backup of a VM running VSS-aware applications without shutting them down, Veeam Backup &
Replication uses application-aware image processing. It allows backup the data fully and consistently.
This cmdlet provides two parameter sets:
Applying changes to the job VSS settings.
To apply the set of customized settings you need to first create a CVssOptions object which
unifies all the VSS options you want to apply to the job. The CVssOptions object is created
with the help of the New-VBRJobVssOptions cmdlet.
Set credentials for the guest OS.
To set the credentials, specify the credentials you want to use for the VMs in the job. The
credentials will be used for all VMs in the job.
Run Set-VBRJobObjectVssOptions to apply VSS settings to specific VMs in job.
True
Specifies the job you want to (ByValue,
Job True 1 False
edit. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command applies custom VSS options to the backup job named "Backup Job 01". The job object
is obtained with Get-VBRJob and piped down. The object containing the set of customized VSS
options is obtained with New-VBRJobVssOptions and assigned to the $options variable beforehand.
Example 2
This command applies custom VSS options to the job represented by the $job variable. The job object
is obtained with Get-VBRJob and assigned to the variable beforehand. The object containing the set of
customized VSS options is obtained with New-VBRJobVssOptions and assigned to the $options
variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Get-VBRServer
Find-VBRViEntity
Find-VBRViDatastore
Find-VBRViResourcePool
Find-VBRViFolder
Get-VBRBackupRepository
Get-VBRViProxy
Get-VBRWANAccelerator
Get-VBRViServerNetworkInfo
New-VBRViReplicaReIpRule
Detailed Description
This cmdlet modifies an existing replication job. To modify settings, you need to enter the
corresponding parameters with new values. The parameters that you omit will remain unchanged.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet allows you to start a created or stopped backup, replication or copy job.You can start the
job for an ordinary run, or force a full backup, or set the job to try to restart in case it fails.
When you create a job, you need to run it manually unless you enable a job schedule. Run Set-
VBRJobSchedule to schedule the job to run automatically.
You can start the job for an ordinary run, or force a full backup, or set the job to try to restart in case it
fails.
Run Stop-VBRJob to stop a running job.
Run Enable-VBRJob to enable a disabled job.
Run Start-VSBJob to start a SureBackup job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command starts the jobs named "WebApplications Server Backup" and "Fileserver Copy Job". The
job is obtained with Get-VBRJob and piped down.
Example 2
This command starts the vCloud backup job right after it the job is created. (See Add-VBRvCloudJob
for creating a vCloud job). The RunAsync parameter is set to bring the process to the background.
Example 3
This command starts the job named "WebApplications Server Backup" and requires to perform a full
backup. The job is obtained with Get-VBRJob and piped down.
Example 4
This command starts the job represented by the $job variable. The job is obtained with Get-VBRJob
and assigned to the variable beforehand. The -RetryBackup parameter is set to enable the automatic
retry. The RunAsync parameter is set to bring the process to the background.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet stops a running backup, replication or copy job. The job is stopped once, the scheduled
job will start the next scheduled time.
Run Start-VBRJob to start the job manually.
Run Disable-VBRJob to temporarily disable a job.
Run Stop-VSBJob to stop a SureBackup job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command stops the copy job named "SharePoint File Copy Job". The needed job object is
obtained with Get-VBRJob and piped down.
Example 2
This command stops the copy job represented by the $"SharePoint File Copy Job" variable. The
needed session object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet stars failing back to the production host after failover to its replica.
This cmdlet lets you finalize the replica failover started with Start-VBRViReplicaFailover by switching
back to the production VM with data synchronization.
When you perform failback, you switch back to the original VM on the production site. The failback
process collects all the changes that were made to the replica while you failed over to it, and implies
them to the source VM. This allows you to switch between source and replica VMs without data loss.
To switch back to the production VM and discard the changes made to the replica while failover, start
an undo failover process. In this case you return to the production VM in the state preceeding failover.
Run Stop-VBRReplicaFailover to undo failover.
Undo Failback: If you tried to fail back to the original VM but was unable to, because i.e. it was non-
functional or corrupted, you can undo the failback and return to the working replica. Run Stop-
VBRViReplicaFailback to undo failback.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the replica restore
(ByValue,
RestorePoint point which you want to fail True Named False
ByProperty
back.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command fails back from the VM replica named "WebServer_ replica". The restore point is
obtained with Get-VBRRestorePoint and piped down. The restore points of the VM are filtered with
Sort-Object method by the "creationtime" property to get the most recent one. The reason is
"Configuration recovery". The RunAsync parameter is set to bring the process to the background.
Example 2
This command fails back from the VM replica represented by the $"WebServer_replica restorepoint"
variable. The restore point is obtained with Get-VBRRestorePoint and assigned to the variable
beforehand. The reason is "Data recovery". The RunAsync parameter is set to bring the process to the
background.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet allows you fail over a corrupted VM to its successfully created replica.
Performing failover is switching to a VM replica in case the original VM is damaged. You can fail over to
the latest state of a replica or to any of its good known restore points.
In Veeam Backup & Replication, failover is a temporary stage that needs to be finalized:
You can perform failback to recover the original VM on the source host or in a new location.
Failback is used in case you failed over to a DR site that is not intended for continuous
operations, and would like to move the operations back to the production site when the
consequences of a disaster are eliminated.
Run Start-VBRHvReplicaFailback to failback to the original VM.
You can undo failover to switch back to the original VM, revert replication operations and
discard changes made to the working VM replica. In this case you loose all the changes that
were made to the replica while you failed over to it.
Run Stop-VBRReplicaFailover to undo failover. You can also undo planned failover.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the replica restore
Restore (ByValue,
point to which you want to fail True 1 False
Point ByProperty
over.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet stars failing back to the production host after failover to its replica.
This cmdlet lets you finalize the replica failover started with Start-VBRViReplicaFailover by switching
back to the production VM with data synchronization.
When you perform failback, you switch back to the original VM on the production site. The failback
process collects all the changes that were made to the replica while you failed over to it, and implies
them to the source VM. This allows you to switch between source and replica VMs without data loss.
To switch back to the production VM and discard the changes made to the replica while failover, start
an undo failover process. In this case you return to the production VM in the state preceeding failover.
Run Stop-VBRReplicaFailover to undo failover.
Undo Failback: If you tried to fail back to the original VM but was unable to, because i.e. it was non-
functional or corrupted, you can undo the failback and return to the working replica. Run Stop-
VBRViReplicaFailback to undo failback.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the replica restore
(ByValue,
RestorePoint point which you want to fail True Named False
ByProperty
back.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command fails back from the VM replica named "WebServer_ replica". The restore point is
obtained with Get-VBRRestorePoint and piped down. The restore points of the VM are filtered with
Sort-Object method by the "creationtime" property to get the most recent one. The reason is
"Configuration recovery". The RunAsync parameter is set to bring the process to the background.
Example 2
This command fails back from the VM replica represented by the $"WebServer 01_replica
restorepoint" variable. The restore point is obtained with Get-VBRRestorePoint and assigned to the
variable beforehand. The reason is "Data recovery". The RunAsync parameter is set to bring the
process to the background.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet allows you fail over a corrupted VM to its successfully created replica.
This cmdlet provides 3 parameter sets for the following operations:
Performing failover. Performing failover is switching to a VM replica in case the original VM is
damaged. You can fail over to the latest state of a replica or to any of its good known restore points.
Performing permanent failover. You can perform the permanent failover to permanently move your
workload to the target host if the source is nonrecoverable. Your target host should have adequate
resources. The replica starts acting like source in this case.
Performing planned failover. In this case, the source VM is powered off properly, and the replica is fully
synchronized before the failover. The planned failover is used for maintenance or in other cases of
planned downtime.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the replica restore
Restore (ByValue,
point to which you want to fail True 1 False
Point ByProperty
over.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command starts permanent failover to the VM replica named "WebServer_ replica" to its latest
restore point. The restore point is obtained with Get-VBRRestorePoint and piped down. The restore
points of the VM are filtered with Sort-Object method by the "creationtime" property to get the most
recent one. The reason is "Configuration recovery". The RunAsync parameter is set to bring the process
to the background. The -Definite parameter is set to perform the permanent failover.
Example 3
This command fails over to the VM replica represented by the $"WebServer_replica restorepoint"
variable. The restore point is obtained with Get-VBRRestorePoint and assigned to the variable
beforehand. The reason is "Data recovery". The RunAsync parameter is set to bring the process to the
background.
Example 4
This command performs the planned failover to the VM replica represented by the $"DC_replica
restorepoint" variable. The restore point is obtained with Get-VBRRestorePoint and assigned to the
variable beforehand. The reason is "Tsunami forecast". The Planned parameter is used to leverage the
planned failover mechanism.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet allows you to undo the replica failover.
This cmdlet lets you finalize the replica failover started with Start-VBRViReplicaFailover by reverting
back to the production VM discarding changes.
When you undo the failover, you switch back to the original VM, revert replication operations and
discard changes made to the working VM replica. In this case you loose all the changes that were
made to the replica while you failed over to it. You can select a restore point to revert to.
To switch back to the production VM and synchronize the changes made to the replica while failover,
start a failback process. Run Start-VBRViReplicaFailback or Start-VBRHvReplicaFailback to fail back to
the VMware or Hyper-V production VM respectively.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore point of
(ByValue,
RestorePoint the production VM to recover True 1 False
ByProperty
to.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command stops failover process by reverting to the production VM. The restore point of the
replica VM is obtained with Get-VBRRestorePoint and piped down. The restore points of the VM are
filtered with Sort-Object method by the "creationtime" property to get the most recent one. The
reason is "Configuration recovery". The RunAsync parameter is set to bring the process to the
background. The -Force parameter is set to start the replica job running anyway.
Example 2
This command stops failover process by reverting to the production VM. The restorepoint of the
replica VM is represented by the $"WebServer_replica restorepoint" variable. The restore point is
obtained with Get-VBRRestorePoint and assigned to the variable beforehand. The reason is "Data
recovery". The RunAsync parameter is set to bring the process to the background.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet allows you to undo the replica failback started with Start-VBRViReplicaFailback or Start-
VBRHvReplicaFailback.
If you tried to fail back to the production VM but was unable to, because i.e. it was non-functional or
corrupted, you can undo the failback and return to the working replica.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore point of
(ByValue,
RestorePoint the replica VM for which you True 1 False
ByProperty
want to undo the failback.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command stops failback from the replica VM named "WebServer_replica". The restore point is
obtained with Get-VBRRestorePoint and piped down. The restore points of the VM are filtered with
Sort-Object method by the "creationtime" property to get the most recent one. The RunAsync
parameter is set to bring the process to the background.
Example 2
This command stops failback from the replica VM named "WebServer_replica". The restorepoint to
revert to is represented by the $"WebServer_replica restorepoint" variable. The restore point is
obtained with Get-VBRRestorePoint and assigned to the variable beforehand. The RunAsync
parameter is set to bring the process to the background.
See also:
Performing Failover by Failover Plan
Create objects for the VMs you want to add to a failover plan:
Use failover plans to launch failover and roll the group back to production:
Object Description
// Create VM objects:
PS C:\PS> $DNS = Find-VBRViEntity -Name "DNSServer" | New-
VBRFailoverPlanObject -BootDelay 0
PS C:\PS> $MSExchange01 = Find-VBRViEntity -Name
"MS_Exchange_Server_01" | New-VBRFailoverPlanObject -BootOrder
1 -BootDelay 180
PS C:\PS> $MSExchange02 = Find-VBRViEntity -Name
"MS_Exchange_Server_02" | New-VBRFailoverPlanObject -BootOrder
2 -BootDelay 120
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
New-VBRFailoverPlanObject
Return Type
VBRFailoverPlan
Detailed Description
This cmdlet creates a failover plan.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a failover plan for a group of a DNS server and two Microsoft Exchange servers
named "MS Exchange Group Failover". The VMs are assigned to the '$DNS', '$MSExchange01',
'$MSExchange02' variables by running New-VBRFailoverPlanObject beforehand.
Example 2
This command creates a failover plan for a group of a DNS server and two Microsoft Exchange servers
named "MS Exchange Group Failover".
The VMs are assigned to the '$DNS', '$MSExchange01', '$MSExchange02' variables by running New-
VBRFailoverPlanObject beforehand. The VM objects are first consolidated into a massive named
'$"MS_Exchange_Group"'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Get-VBRFailoverPlan [<CommonParameters>]
-OR-
Get-VBRFailoverPlan [-Name <string[]>] [<CommonParameters>]
-OR-
Get-VBRFailoverPlan [-Id <guid[]>] [<CommonParameters>]
Related Commands
None
Return Type
VBRFailoverPlan[]
Detailed Description
This cmdlet returns the list of existing failover plans.
You can get the list of all failover plans or search for instances directly by name or ID.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all existing failover plans.
Get-VBRFailoverPlan
Example 2
This command looks for failover plan named 'MailServers Failover'.
Example 3
This command looks for a failover plan with a particular ID by piping down the variable containing the
ID.
1. The ID is obtained by getting the ID property of the failover plan object and assigned to the
'$MSExchangeGroupID' variable.
You can view the GUID number of the failover plan object:
PS C:\PS> $MSExchangeGroupID
Guid
-------
3247cbb5-b65f-4f93-93aa-e13bdb3001c9
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRViEntity
Return Type
VBRFailoverPlanObject
Detailed Description
This cmdlet creates the VBRFailoverPlanObject object. This object contains the VM that you want to
add to a failover plan. It is used then in the Add-VBRFailoverPlan cmdlet.
You must create the VBRFailoverPlanObject object for each VM that you want to add to the failover
plan. For each VM, you can set the boot order and the delay time.
• The boot order indicates the order in which the VMs will start by the failover plan. Make sure
you set the dependent VMs to start after the VMs they depend on.
• The delay time is an interval between each VM start. Use delay intervals to make sure that
some VMs are already running at the moment the dependent VMs start.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
These commands create three VBRFailoverPlanObject objects for the group of mail servers: a DNS
server and two Microsoft Exchange servers. The DNS server starts first followed by the two Microsoft
Exchange servers started with a delay.
The servers objects are obtained with Find-VBRViEntity and piped down.
• The VBRFailoverPlanObject for the DNS server is assigned to the '$DNS' variable. The boot
order is omitted and will be automatically set to 0. The boot delay is set to 0 sec to start the
DNS server immediately.
• The VBRFailoverPlanObject for the first Microsoft Exchange server is assigned to the
'$MSExchange01' variable. The boot order is set to 1, and the boot delay is set to 180 sec.
• The VBRFailoverPlanObject for the second Microsoft Exchange server is assigned to the
'$MSExchange02' variable. The boot order is set to 2, and the boot delay is set to 120 sec.
Example 2
This command creates the VBRFailoverPlanObject for the server named 'MS_Exchange_Server_01'.
• The server object is obtained with Find-VBRViEntity and assigned to the '$vm1' variable.
• The VBRFailoverPlanObject is created and assigned to the '$MSExchange01' variable. The
'$vm1' variable is used to add the Microsoft Exchange server, the boot order is set to 1 and
the boot delay is set to 180 sec.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRFailoverPlan
Return Type
None
Detailed Description
This cmdlet removes a selected failover plan from Veeam Backup & Replication console and database.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes failover plan named "MS Exchange Group Failover". The failover plan object is
obtained with Get-VBRFailoverPlan and piped down.
Example 2
This command removes failover plan represented by the '$MSExchangeGroup' variable. The failover
plan object is obtained with Get-VBRFailoverPlan and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
New-VBRFailoverPlanObject
Return Type
None, VBRFailoverPlan (use -PassThru to obtain output object)
Detailed Description
This cmdlet modifies settings of an existing failover plan. To modify settings, you need to enter the
corresponding parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a pre-failover script to an existing failover plan named "MS Exchange Group
Failover".
• The failover plan object is obtained with Get-VBRFailoverPlan and piped down.
• The -PrefailoverCommand parameter is set to add the path to the script to the failover plan.
• The other settings of the 'MS Exchange Group Failover' plan will remain unchanged.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRFailoverPlanObject
Detailed Description
This cmdlet modifies the VBRFailoverPlanObject object that was created earlier. To modify settings,
you need to enter the corresponding parameters with new values. The parameters that you omit will
remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command sets a new boot delay value for the Microsoft Exchange server that was earlier assigned
to the '$MSExchange01' variable.
• The boot delay is set to 120 sec.
• The -BootOrder parameter is omitted to leave the original value unchanged.
• The '$MSExchange01' variable is piped down.
Example 2
This command sets a new boot delay value for the Microsoft Exchange server that was earlier assigned
to the '$MSExchange01' variable.
• The boot delay is set to 120 sec.
• The -BootOrder parameter is omitted to leave the original value unchanged.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRFailoverPlan
Return Type
VBRBackupSession[]
Detailed Description
This cmdlet starts failover by failover plan. With this cmdlet, you can start a number of failover
processes.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command starts failover process by failover plan named "MS Exchange Group Failover". The VMs
in the failover group are failed over to the latest restore point.
• The failover plan is obtained with Get-VBRFailoverPlan and piped down.
• The FromDate parameter is omitted to select the latest restore point automatically.
Example 2
This command starts failover process represented by the '$MSExchangeGroup' variable. The VMs in
the failover group are failed over to the latest restore point.
• The failover plan is obtained with Get-VBRFailoverPlan and assigned to the
'$MSExchangeGroup' variable beforehand.
• The FromDate parameter is omitted to select the latest restore point automatically.
Example 3
This command starts failover processes by failover plans named "MS Exchange Group Failover" and
"SQLServers Group Failover". The VMs are failed over to a week ago state. The VM groups are failed
over one by one.
• The date is obtained with the Date command and assigned to the '$date' variable
beforehand.
• The failover plans are obtained with Get-VBRFailoverPlan and piped down.
• The Wait parameter is used to start the failover processes one after the other.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRFailoverPlan
Return Type
VBRBackupSession[]
Detailed Description
This cmdlet undoes the failover process. Undoing failover switches the workload back to source VMs.
All changes that were made to the replicas during failover are discarded.
To switch back to the production VM and synchronize the changes made to the replica while failover,
start a failback process. Run Start-VBRViReplicaFailback or Start-VBRHvReplicaFailback to fail back to
the VMware or Hyper-V production VM respectively. Note that failback is not a group process and
must be performed for each VM individually.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command undoes the failover process by failover plan named "MS Exchange Group Failover". The
failover plan is obtained with Get-VBRFailoverPlan and piped down.
Example 2
This command undoes the failover process represented by the '$MSExchangeGroup' variable. The
failover plan is obtained with Get-VBRFailoverPlan and assigned to the variable beforehand.
Example 3
This command undoes failover processes by failover plans named "MS Exchange Group Failover" and
"SQLServers Group Failover". The VM groups are processed one by one.
• The failover plans are obtained with Get-VBRFailoverPlan and piped down.
• The Wait parameter is used to undo the failover processes one after the other.
Created by
Add-VBRFailoverPlan
Passed to
Get-VBRFailoverPlan
Set-VBRFailoverPlan
Remove-VBRFailoverPlan
Start-VBRFailoverPlan
Undo-VBRFailoverPlan
Properties
Property Type Description
Created by
New-VBRFailoverPlanObject
Passed to
Set-VBRFailoverPlanObject
Add-VBRFailoverPlan
Set-VBRFailoverPlan
VBRFailoverPlan
Properties
Property Type Description
Backup jobs
Operation VMware Hyper-V
Copies VM backups to a
Add-VBRViBackupCopyJob Add-VBRHvBackupCopyJob
secondary repository
Operation Cmdlet
Applies to
Platform: Hyper-V
For VMware, run Add-VBRViBackupCopyJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For data transfer with WAN accelerators:
Related Commands
Get-VBRWANAccelerator
Find-VBRHvEntity
Get-VBRBackup
Get-VBRJob
Get-VBRBackupRepository
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a direct backup copy job with the following parameters:
• The name of the job is "DC CopyJob",
• The backup job named "DC Backup" with the VMs to be copied is obtained with Get-
VBRBackup and piped down,
• The -Repository parameter is not set to copy the VMs to the default backup repository.
Applies to
Platform: VMware
For Hyper-V, run Add-VBRHvBackupCopyJob.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For data transfer with WAN accelerators:
Related Commands
Get-VBRWANAccelerator
Find-VBRViEntity
Get-VBRBackup
Get-VBRJob
Get-VBRBackupRepository
The cmdlet provides two scenarios that can be used for on-site and off-site modes:
• To transfer the data efficiently to to the off-site location, you can use the WAN accelerator
technology. WAN accelerator is a backup infrastructure component that optimizes file
transfer via WAN by means of data deduplication. The role of a WAN accelerator can be
assigned to a dedicated Windows-based machine (physical or virtual). You should always use
a pair of WAN accelerators set on source and target sides. This mode is recommended for off-
site backups. To create and run a backup copy job using WAN accelerators you need to have
source and target WAN accelerators created.
Run Add-VBRWANAccelerator to create a WAN accelerator. WAN optimization is available
only in Veeam Backup & Replication Enterprise Plus Edition.
• You can create a backup copy job using direct operation. With this method, the job sends the
data directly to the target backup repository without performing data deduplication. This
mode is recommended for on-site backups, or off-site backups using fast connections.
Note that the backup copy job is created in disabled state. Run Enable-VBRJob to start the job running
on the defined schedule.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a direct backup copy job with the following parameters:
• The name of the job is "DC CopyJob",
• The backup job named "DC Backup" with the VMs to be copied is obtained with Get-
VBRBackup and piped down,
• The -Repository parameter is not set to copy the VMs to the default backup repository.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Detailed Description
This cmdlet starts manual data synchronization for the selected backup copy job.
The backup copy job is copying backup files from the source backup repository to the target backup
repository. The backup copy job runs continuously synchronizing the backup repositories in user-
defined time periods.
With this cmdlet, you can synchronize the source and the target repositories manually.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the backup copy job
(ByValue,
Job for which you want to start True Named False
ByProperty
manual synchronization.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command synchronizes data for the backup copy job represented by the $"AD backup" variable.
The needed job object is obtained with Get-VBRJob and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Get-VBRJob
Get-VBRBackupRepository
Get-VBRWANAccelerator
Detailed Description
This cmdlet creates a new vCloud backup copy job.
The backup copy job is copying backup files from the source backup repository to the target backup
repository. The backup copy job runs continuously synchronizing the backup repositories in user-
defined time periods.
The cmdlet provides two scenarios that can be used for on-site and off-site modes:
• To transfer the data efficiently to to the off-site location, you can use the WAN accelerator
technology. WAN accelerator is a backup infrastructure component that optimizes file
transfer via WAN by means of data deduplication. The role of a WAN accelerator can be
assigned to a dedicated Windows-based machine (physical or virtual). You should always use
a pair of WAN accelerators set on source and target sides. This mode is recommended for off-
site backups. To create and run a backup copy job using WAN accelerators you need to have
source and target WAN accelerators created.
Run Add-VBRWANAccelerator to create a WAN accelerator. WAN optimization is available
only in Veeam Backup & Replication Enterprise Plus Edition.
• You can create a backup copy job using direct operation. With this method, the job sends the
data directly to the target backup repository without performing data deduplication. This
mode is recommended for on-site backups, or off-site backups using fast connections.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a backup copy job named "vCloud CopyJob1" with the following parameters:
• The source and target WAN accelerators are obtained with Get-VBRWANAccelerator and
assigned to $wansource and $wantarget variables accordingly beforehand,
• The VMs to copy are obtained with Find-VBRvCloudEntity and assigned to the $vms variable
beforehand,
• The repository to where the VM data will be copied is obtained with Get-
VBRBackupRepository and assigned to the $repository variable beforehand.
Example 2
This command creates a direct backup copy job with the following parameters:
• The name of the job is "DC CopyJob",
• The backup job named "DC Backup" with the VMs to be copied is obtained with Get-
VBRBackup and piped down,
• The -Repository parameter is not set to copy the VMs to the default backup repository.
Syntax
This cmdlet provides two parameter sets.
For direct data transfer:
Related Commands
Get-VBRBackup
Get-VBRBackupRepository
Get-VBRWANAccelerator
Detailed Description
This cmdlet creates a backup copy job for Endpoint backups.
The backup copy job is copying Endpoint backup files from the source backup repository to the target
backup repository. The backup copy job runs continuously synchronizing the backup repositories in
user-defined time periods.
The cmdlet provides two parameters sets that can be used for on-site and off-site modes:
• Direct data transfer
You can create a backup copy job using direct operation. With this method, the job sends the
data directly to the target backup repository without performing data deduplication. This
mode is recommended for on-site backups, or off-site backups using fast connections.
• Data transfer with WAN accelerators
To transfer the data efficiently to to the off-site location, you can use the WAN accelerator
technology. WAN accelerator is a backup infrastructure component that optimizes file
transfer via WAN by means of data deduplication. The role of a WAN accelerator can be
assigned to a dedicated Windows-based machine (physical or virtual). You should always use
a pair of WAN accelerators set on source and target sides. This mode is recommended for off-
site backups. To create and run a backup copy job using WAN accelerators you need to have
source and target WAN accelerators created.
Run Add-VBRWANAccelerator to create a WAN accelerator. WAN optimization is available
only in Veeam Backup & Replication Enterprise Plus Edition.
Note that the backup copy job is created in disabled state. Run Enable-VBRJob to start the job running
on the defined schedule.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a backup copy job using WAN accelerators.
• The Endpoint backup is obtained with Get-VBRBackup and piped down.
• The target backup repository is obtained with Get-VBRBackupRepository and assigned to the
'$repository' variable.
• The source and target WAN accelerators are obtained with Get-VBRWANAccelerator and
assigned to $wansource and $wantarget variables accordingly.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet creates a new job that copies the selected VM(s) to another location.
With a VM copy job, you can create a fully-functioning copy of a VM that will require no manual
editing and adjustments. VM copying can be helpful if you want to move your datacenter, mirror your
production environment to test lab storage, etc.
Note that when you create a copy job, you need to run it manually unless you enable a job schedule.
Run Start-VBRJob to start the created job.
Run Set-VBRJobSchedule to set schedule for the job.
Run Copy-VBRJob to create a copy of a job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the string with the
(ByValue,
Objects name(s) of VM(s) that you want True Named False
ByProperty
to copy.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupRepository
Find-VBRViEntity / Find-VBRHvEntity
Detailed Description
This cmdlet performs VeeamZIP backup of the selected VM.
VeeamZIP is a quick backup procedure always producing a full backup. The VeeamZIP task runs once
the time it is created and does not appear in the jobs list. The result backup file is stored in the
specified folder and does not appear automatically in the backups list. Run Import-VBRBackup to start
managing the backup file with Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command starts a VeeamZIP for the VM named "Fileserver01". The VM object is obtained with
Find-VBRViEntity and piped down. The backup repository to store the result backup file is obtained
with Get-VBRBackupRepository and assigned to the $"Repository 01" variable beforehand. The
RunAsync parameter is set to bring the process to the background.
Example 2
This command starts a VeeamZIP for the VM repersented by the $vm variable. The VM object is
obtained with Find-VBRViEntity and assigned to the variable beforehand. The path to the folder where
the backup file will be stored is D:\Repository\VeeamZIP. The compression level is set to 4 (Dedupe-
friendly). The VMware quiescence is disabled. The RunAsync parameter is set to bring the process to
the background.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRViEntity / Find-VBRHvEntity
Detailed Description
This cmdlet starts QuickBackup on selected VMs.
Quick backup performs on-demand incremental backup for VMs. The VM must be added to a backup
job and have at least one full backup.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRViEntity
Get-VBRServer
Find-VBRViResourcePool
Find-VBRViDatastore
Find-VBRViFolder
Get-VBRViProxy
Detailed Description
This cmdlet starts Quick Migration for a selected virtual machine(s).
Quick Migration is a service allowing to promptly migrate a VM between ESX(i) hosts, datastores or
both in any state with minimum disruption to business operations and end user access to services.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the destination
(ByValue,
Server server to where you want to True Named False
ByProperty
migrate the VM.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of restore sessions stored in Veeam Backup & Replication database.
You can get the list of all restore sessions or get the restore sessions of a specific VM or VM(s).
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all restore sessions stored in the database.
Get-VBRRestoreSession
Example 2
This command looks for the restore sessions of the VMs named "Hv_DNS" and "Hv_DC".
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestoreSession
Detailed Description
This cmdlet removes the specified restore session from Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore session you (ByValue,
Session True 1 False
want to remove. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the restore session represented by the $session variable. The restore session
object is obtained with Get-VBRRestoreSession and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
For VMware, run Start-VBRRestoreVM.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Detailed Description
This cmdlet starts restore of the entire VM.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Restore Specifies the VM restore point (ByValue,
True 1 False
Point to which you want to restore. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For Hyper-V (default):
For VMware:
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Get-VBRHvServerNetworkInfo / Get-VBRViServerNetworkInfo
Find-VBRViResourcePool
Detailed Description
This cmdlet starts restore of VM guest OS files from 15 file systems such as Linux, Unix, BSD, MacOS
and many others.
For non-Windows file level restore, an assisting proxy appliance running Linux is used. Veeam Backup
& Replication mounts disks of the restored VM to the proxy appliance as virtual hard drives.
For Windows OS file restore, run Start-VBRWindowsFileRestore.
This cmdlet requires finalizing. When you restore all needed files, run Stop-VBRLinuxFileRestore to
unmount disks and powers the proxy appliance off.
Important! You need to save the restore session to a variable when you run this cmdlet. Otherwise you will be
unable to finalize the restore session with PowerShell.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This example shows how to start a file restore session for a non-Windows VM in the Hyper-V
environment.
• The restore session is saved to the '$linuxflr' variable to use it for finalizing in future.
• The restore point is obtained with Get-VBRRestorePoint and assigned to the '$restorepoint'
variable beforehand.
• The host where the proxy appliance will be deployed is obtained with Get-VBRServer and
assigned to the '$hvhost01' variable beforehand.
• The network in which the proxy appliance will be registered is obtained with Get-
VBRHvServerNetworkInfo and assigned to the '$targetnetwork' variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Start-VBRHvRestoreVM.
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets.
For restore to another location:
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Find-VBRViResourcePool
Find-VBRViDatastore
Find-VBRViStoragePolicy
Find-VBRViFolder
Detailed Description
This cmdlet starts the entire VM restore.
With this cmdlet, you can restore the VM to the original location or to another location. Use an
appropriate parameter set for each case.
True
Specifies the VM restore point (ByValue,
RestorePoint True 1 False
to which you want to restore. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This example starts restore of the VM to another location.
• The restore point is obtained with Get-VBRRestorePoint and assigned to the the '$point'
variable.
• The target host is obtained with Get-VBRServer and assigned to the '$server' variable.
• The resource pool is obtained with Find-VBRViResourcePool and assigned to the '$rpool'
variable.
• The datastore is obtained with Find-VBRViDatastore and assigned to the '$datastore' variable.
• The PowerUp parameter is set to $TRUE to boot the VM after it is restored.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Get-VBRFilesInRestorePoint
Detailed Description
This cmdlet allows you to restore configuration file (.vmx) or virtual disks (.vmdk) of a selected VM.
Run Start-VBRWindowsFileRestore to restore VM disks data.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This example allows you to restore all VM guest OS files from the restore point specified in the $point
variable and save them on the host specified in the $server variable to the C:\BackupFiles folder.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Find-VBRViResourcePool
Find-VBRViFolder
Detailed Description
This cmdlet allows you to restore files stored on disks of VM running Windows or from Endpoint
backups.
This cmdlet mounts the disks of the backed up VM(s) to the Veeam backup server or other server in
your virtual infrastructure. The disks are published directly from the backup file. After the disks are
mounted, you can copy the needed files to any disk or folder accessible by Veeam backup server.
To stop the file restore session and unmount the disks, run Stop-VBRWindowsFileRestore.
Important! You need to save the restore session to a variable when you run this cmdlet. Otherwise you will be
unable to finalize the restore session with PowerShell.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet terminates non-Windows VM guest OS file restore process started with Start-
VBRLinuxFileRestore.
When you terminate the non-Windows VM guest OS file restore, Veeam Backup & Replication
unmounts virtual disks and powers the proxy appliance off. Note that you cannot restore files after the
disks are unmounted.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command stops a file restore session initiated with Start-VBRLinuxFileRestore.
This example uses the '$linuxflr' variable that contains the object of the restore session. The session
object was saved to the variable during the restore session start.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
This cmdlet provides two parameter sets:
to stop the restore session:
to unmount disks:
Detailed Description
This cmdlet finalizes the restore session initiated with Start-VBRWindowsFileRestore.
To finalize the restore session, you can use the following options:
Submit the session object.
You need to save the object of the restore session the moment you start the session. If you
have saved it to a variable, you can use it with the FileRestore parameter.
Submit the path to any of disks that were mounted during the restore.
You need to know a temporary path to at least one of the VM virtual disks that were mounted
during the restore session. Note that when you provide path to one virtual disk, as the result
of the cmdlet all disk of the VM will be unmounted.
This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command stops a file restore session initiated with Start-VBRWindowsFileRestore.
This example uses the $result variable that contains the object of the restore session. The session
object was saved to the variable during the restore session start.
Stop-VBRWindowsFileRestore $Result
See also:
Performing Instant Recovery of a VMware VM
Performing Instant Recovery of a Hyper-V VM
Starts an instant
recovery of a Start-VBRvCloudInstantRecovery —
vCloud VM
Instantly recovers a
Start-VBRInstantRecovery Start-VBRHvInstantRecovery
VM from backup
Restarts a failed
— Restart-VBRInstantRecovery
instant recovery
Migrates a
recovered VM to the See Quick Migration Start-VBRHvInstantRecoveryMigration
production host
Terminates an
Stop-VBRInstantRecovery Stop-VBRInstantRecovery
instant recovery
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the Instant VM Recovery session running at the moment.
You can get the information about the instant recovery sessions in short or detailed view.
Return Type
InstantRecoveryDetails
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command gets the list of the instant recovery sessions in short view.
Get-VBRInstantRecovery
Example 2
This command gets the list of the instant recovery sessions in detailed view.
Get-VBRInstantRecovery -Full
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRInstantRecovery
Detailed Description
This cmdlet restarts a failed Hyper-V Instant Recovery session started with Start-
VBRHvInstantRecovery.
Run Get-VBRInstantRecovery to get the status of the Instant Recovery session.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command restarts the instant recovery session represented by the $"Recovery Session" variable.
The needed session object is obtained with Get-VBRInstantRecovery and assigned to the variable
beforehand.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Detailed Description
This cmdlet allows to perform Instant Recovery of a Hyper-V VM. The Instant VM Recovery for Hyper-V
process creates a copy of a VM in a target location reading data from the directly from a compressed
and deduplicated backup file.
This cmdlet allows you to use the following options:
• Restore the VM to any available restore point, full or increment. Use the RestorePoint
parameter to indicate the needed restore point.
• Restore the VM to original location or to another location. Use the Server and Path
parameters to indicate the target location where the VM will be restored. You can indicate the
location of the original VM or any other host available with Veeam backup server that will act
as a staging location. If you choose the original location, make sure that the original VM is
powered off to avoid conflicts or restore the VM with a new name. Use the VMName
parameter to set the new name.
• Connect VM to network. Use the NICsEnabled parameter to connect the restored VM to the
network.
• Power on VM automatically. Use the PowerUp parameter to indicate that the VM must be
automatically powered on after restore.
• Restore the VM with the original ID or with a new ID. Note that if the original VM keeps
running, preserving the ID will cause conflict. Preserving the ID is useful in case the original
VM will not be used in future - in this case, Veeam Backup & Replication will recognize the
restored VM as its original and perform all backup and other operations that were scheduled
for the original VM.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Start-VBRHvInstantRecoveryMigration [-InstantRecovery]
<InstantRecovery[]> [-WarningAction <ActionPreference>][-
WarningVariable <String>] [<CommonParameters>]
Related Commands
Get-VBRInstantRecovery
Detailed Description
This cmdlet migrates a recovered VM to the production host. You finalize the instant recovery of the
VM initiated with Start-VBRHvInstantRecovery by migrating the VM to production.
Run Stop-VBRInstantRecovery to terminate the recovery session by unpublishing the VM.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRInstantRecovery | Start-VBRHvInstantRecoveryMigration
Example 2
This command finalizes the instant recovery session represented by the $"Hv Instant Recovery"
variable. The session is obtained with Get-VBRInstantRecovery and assigned to the variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Find-VBRViResourcePool
Find-VBRViDatastore
Find-VBRViFolder
Detailed Description
This cmdlet starts VM instant recovery.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore point to
(ByValue,
RestorePoint which you want to recover the True 1 False
ByProperty
VM.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command restores the VM to another location and with different settings. The following
parameters are set:
• The restore point is obtained with Get-VBRRestorePoint and assigned to the $restorepoint
variable.
• The VM is restored with name "MSExchange_Restored".
• The server to locate the restored VM is obtained with Get-VBRServer and assigned to the
$server variable.
• The resource pool is obtained with Find-VBRViResourcePool and assigned to the $pool
variable.
• The datastore is obtained with Find-VBRViDatastore and assigned to the $store variable.
• The folder to locate the restored VM is C:\Restored.
• The -PowerUp parameter is set to TRUE to enable the auto power up of the restored VM.
• The -NICsEnabled parameter is set to TRUE to connect the restored VM to the host network.
• The restore reason is "Data recovery".
• The RunAsync parameter is set to bring the process to the background.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRInstantRecovery
Detailed Description
This cmdlet stops publishing a VM within an instant recovery process.
With instant recovery technology, Veeam Backup & Replication starts a VM directly from a backup,
incremental or full, without copying it to production storage. You need to finalize the successful
instant recovery by either migrating the recovered VM to production or by stopping publishing the
recovered VM.
To migrate the VM, run Start-VBRQuickMigration.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the running instant VM
Instant (ByValue,
recovery process that you want True 1 False
Recovery ByProperty
to stop.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command storps the instant recovery session represented by the $"Recovery Session" variable.
The needed session object is obtained with Get-VBRInstantRecovery and assigned to the variable
beforehand.
See next:
Virtual Lab
Application Group
SureBackup Job
Note that the SureBackup technology requires Enterprise or Enterprise Plus product edition.
See also:
Creating VMware Virtual Lab
Creating Hyper-V Virtual Lab
You will need the following cmdlets to create and manage the virtual labs:
Find-VSBVirtualLab Find-VSBHvVirtualLab
Looks for virtual labs not
connected to your console (run Connect-VSBVirtualLab (run Connect-VSBHvVirtualLab
to add them) to add them)
// Get a datastore:
PS C:\PS> $datastore = Find-VBRViDatastore -Name "Datastore1"
-Server $host
Applies to
Platform: Hyper-V
For VMware, run Add-VSBVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet creates a new Hyper-V virtual lab.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command creates a new virtual lab named "Exchange VLab 01". The server where the virtual lab
will be located is obtained with Get-VBRServer and assigned to the $server variable beforehand. The
folder path to store the redo files is c:\VirtualLabs.
Applies to
Platform: VMware
For Hyper-V, run Add-VSBHvVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Find-VBRViDatastore
Detailed Description
This cmdlet creates a new VMware virtual lab.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: Hyper-V
For VMware, run Connect-VSBVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VSBHvVirtualLab
Detailed Description
This cmdlet connects an existing Hyper-V virtual lab to Veeam Backup & Replication console.
When you add a new host to your Veeam Backup & Replication console, the virtual labs that are
registered on it are not added automatically. Use this cmdlet to add the virtual labs to your Veeam
Backup & Replication console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the virtual lab you
(ByValue,
VirtualLab want to connect to your Veeam True 1 False
ByProperty
Backup & Replication console.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command connects a virtual lab represented by the $VLab01 variable. The virtual lab object is
obtained with Find-VSBHvVirtualLab and assigned to the variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Connect-VSBHvVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VSBVirtualLab
Detailed Description
This cmdlet connects an existing VMware virtual lab to Veeam Backup & Replication console.
When you add a new host to your Veeam Backup & Replication console, the virtual labs that are
registered on it are not added automatically. Use this cmdlet to add the virtual labs to your Veeam
Backup & Replication console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the virtual lab you (ByValue,
VirtualLab True 1 False
want to connect. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command connects a virtual lab represented by the $VLab01 variable. The virtual lab object is
obtained with Find-VSBVirtualLab and assigned to the variable beforehand.
Applies to
Platform: Hyper-V
For VMware, run Find-VSBVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of all virtual labs created on the specified Hyper-V host, both registered in
Veeam Backup & Replication and not.
You can get the list of all virtual labs on the specified Hyper-V host or look for instances directly by
name.
Run Connect-VSBHvVirtualLab to add the unregistered virtual labs to Veeam Backup & Replication.
Return Type
CHvSbVirtualLab
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the server on which (ByValue,
Server True 1 False
you want to look for virtual labs. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the virtual labs with names starting with "Hv" on the server represented by
the $server variable. The server object is obtained with Get-VBRServer and assigned to the variable
beforehand.
Applies to
Platform: VMware
For Hyper-V, run Find-VSBHvVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet returns a list of all virtual labs created on the specified ESX(i) host, both registered in
Veeam Backup & Replication and not.
You can get the list of all VMware virtual labs on the specified ESX(i) host or look for instances directly
by name.
Run Connect-VSBVirtualLab to add the unregistered virtual labs to Veeam Backup & Replication.
Return Type
CVirtualLabDescriptor
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the server on which (ByValue,
Server True 1 False
you want to look for virtual labs. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the virtual lab named "MailServer_VLab" connected to the ESXi host named
"ESXiHost". The server is obtained with Get-VBRServer and piped down.
Applies to
Platform: Hyper-V
For VMware, run Get-VSBVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of Hyper-V virtual labs that are connected to the Veeam backup console.
Run Find-VSBHvVirtualLab to look for virtual labs that are not managed by Veeam Backup &
Replication.
You can get the list of all virtual labs or search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all virtual labs created or connected to Veeam Backup & Replication.
Get-VSBHvVirtualLab
Example 2
This command looks for the list of virtual labs with names starting with "Exchange".
Applies to
Platform: VMware
For Hyper-V, run Get-VSBHvVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of existing VMware virtual labs.
Run Find-VSBVirtualLab to look for virtual labs that are not managed by Veeam Backup & Replication.
You can get the list of all virtual labs or search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all virtual labs.
Get-VSBVirtualLab
Example 2
This command looks for the virtual labs named "MailServer VLab 01" and "MailServer VLab 05".
Applies to
Platform: Hyper-V
For VMware, run Remove-VSBVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBHvVirtualLab
Detailed Description
This cmdlet removes a specified Hyper-V virtual lab from Veeam Backup & Replication console.
The virtual lab is not deleted from server where it was created. When you remove a virtual lab, you
stop managing it via your Veeam Backup & Replication console. Note that you cannot remove a virtual
lab from server with Veeam PowerShell.
You can add a removed virtual lab to your console by running Connect-VSBHvVirtualLab.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes a virtual lab represented by the $vlab variable. The virtual lab object is
obtained with Get-VSBHvVirtualLab and assigned to variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Remove-VSBHvVirtualLab.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBVirtualLab
Detailed Description
This cmdlet removes a specified VMware virtual lab from Veeam Backup & Replication.
The virtual lab is not deleted from server where it was created. When you remove a virtual lab, you
stop managing it via your Veeam Backup & Replication console. Note that you cannot remove a virtual
lab from server with Veeam PowerShell.
You can add a removed virtual lab to your console by running Connect-VSBVirtualLab.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes a virtual lab represented by the $vlab variable. The virtual lab object is
obtained with Get-VSBVirtualLab and assigned to the variable beforehand.
See also:
Creating VMware Application Group
Creating Hyper-V Application Group
You will need the following cmdlets to create and manage the application groups:
Applies to
Platform: Hyper-V
For VMware, run Add-VSBViApplicationGroup.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRHvEntity
Get-VBRRestorePoint
Detailed Description
This cmdlet creates a new Hyper-V application group.
This cmdlet provides two scenarios. You can add VMs to your application group either by searching
for existing VMs or by adding a restore point containing the VMs you need.
Note that you can set the order the VMs in the application group will be powered on when the
SureBackup job starts. This may be important if any of the applications must be started prior to other.
The VMs are powered in the order they were added to the VM object in this cmdlet, i.e. in order you
searched for VMs with Find-VBRHvEntity.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a new application group named "Microsoft Exchange Appgroup".The VMs that
should be included into the application group are obtained with Find-VBRHvEntity and piped down.
The VMs are obtained in the order they must boot when the SureBackup job starts.
Example 2
This command creates a new application group "MailServer Appgroup". The restore point object is
obtained with Get-VBRRestorePoint and assigned to the variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Add-VSBHvApplicationGroup.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRViEntity
Get-VBRRestorePoint
Detailed Description
This cmdlet creates an application group containing virtual machines that the application server is
dependent on.
You can add to the same application groups VMs from backups and VMs from replicas. All VMs from
the application group must have at least one valid restore point created by the time the SureBackup
job starts.
Note that you can set the order the VMs in the application group will be powered on when the
SureBackup job starts. This may be important if any of the applications must be started prior to other.
The VMs are powered in the order they were added to the VM object in this cmdlet, i.e. in order you
searched for VMs with Find-VBRViEntity.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a new application group "MailServer Appgroup". The restore point object is
obtained with Get-VBRRestorePoint and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of existing application groups.
You can get the list of all application groups, or search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all application groups.
Get-VSBApplicationGroup
Example 2
This command looks for the application group named "MailServer Appgroup".
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBApplicationGroup
Detailed Description
This cmdlet removes a specified application group from Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the application group represented by the $appgroup variable. The
application group is obtained with Get-VSBApplicationGroup and assigned to the variable
beforehand.
See also:
Creating VMware SureBackup Job
Creating Hyper-V SureBackup Job
You will need the following cmdlets to create and manage the SureBackup jobs:
SureBackup jobs: create, start/stop or remove the SureBackup jobs.
SureBackup jobs settings: configure job schedule or edit the advanced job settings.
SureBackup sessions: view the SureBackup sessions or tasks performed during them.
Applies to
Platform: Hyper-V
For VMware, run Add-VSBJob.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBHvVirtualLab
Get-VSBApplicationGroup
Get-VBRJob
Detailed Description
This cmdlet adds a new Hyper-V SureBackup job.
You can use a linked job to bring the target VM(s) to the job, or an application group containing the
required VMs, or a combination of both according to your virtual infrastructure objectives.
Note that when you create a SureBackup job, you need to run it manually unless you enable a job
schedule.
Run Start-VSBJob to start the created SureBackup job.
Run Set-VSBJobScheduleOptions to set schedule for the SureBackup job.
True
Specifies the virtual lab you (ByValue,
VirtualLab True Named False
want to use for verification. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab, an
application group and a linked job. The virtual lab and application group objects are obtained with
Get-VSBHvVirtualLab and Get-VSBApplicationGroup and assigned to $VLab01 and $"Exchange
Appgroup" variables accordingly beforehand.
Example 3
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab and an
application group. The virtual lab object is obtained with Get-VSBHvVirtualLab and piped down. The
VM to verify is included into the application group, the application group object is obtained with Get-
VSBApplicationGroup and assigned to the $"Exchange Appgroup" variable beforehand.
Example 4
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab and a
linked job. The virtual lab object is obtained with Get-VSBHvVirtualLab and assigned to $VLab01
variable beforehand. The VM to verify is obtained with Get-VBRJob and assigned to the $"Exchange
Backup" variable beforehand.
Applies to
Platform: VMware
For Hyper-V, run Add-VSBHvJob.
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBVirtualLab
Get-VSBApplicationGroup
Get-VBRJob
Detailed Description
This cmdlet creates a new VMware SureBackup job.
To add VMs that you want to verify to the SureBackup job, you can use an application group
containing the list of VMs, or link a backup job which will act as a VM container.
Note that if you link a backup job, the SureBackup job will verify all VMs added to the linked job.
When you create a SureBackup job, you need to run it manually unless you enable a job schedule.
Run Start-VSBJob to start the created SureBackup job.
Run Set-VSBJobScheduleOptions to set schedule for the SureBackup job.
True
Specifies the virtual lab you (ByValue,
VirtualLab True Named False
want to use for verification. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab, an
application group and a linked job. The virtual lab and application group objects are obtained with
Get-VSBVirtualLab and Get-VSBApplicationGroup and assigned to $VLab01 and $"Exchange
Appgroup" variables accordingly beforehand.
Example 3
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab and an
application group. The virtual lab object is obtained with Get-VSBVirtualLab and piped down. The VM
to verify is included into the application group, the application group object is obtained with Get-
VSBApplicationGroup and assigned to the $"Exchange Appgroup" variable beforehand.
Example 4
This command creates a new Sure Backup job named "Exchange SureJob" using a virtual lab and a
linked job. The virtual lab object is obtained with Get-VSBVirtualLab and assigned to $VLab01 variable
beforehand. The VM to verify is obtained with Get-VBRJob and assigned to the $"Exchange Backup"
variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of created SureBackup jobs.
You can get the list of all SureBackup jobs or look for specific jobs directly by name.
Run Get-VSBSession or Get-VSBTaskSession to get the information on SureBackup session or session
tasks.
Run Get-VBRJob to look for backup, replication or copy jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all created SureBackup jobs.
Get-VSBJob
Example 2
This command looks for the SureBackup jobs named "SureJob 01" and "SureJob 02".
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet returns the list of job settings for the specified SureBackup job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the SureBackup job (ByValue,
Job True 1 False
you want to get the settings of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of job settings for the SureBackup job named "SureJob 02". The
SureBackup job is obtained with Get-VSBJob and piped down.
Example 2
This command looks for the list of job settings for the SureBackup job represented by the $SureJob
variable. The SureBackup job is obtained with Get-VSBJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet returns the list of job scheduling options for the specified SureBackup job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the SureBackup job
(ByValue,
Job you want to get the scheduling True 1 False
ByProperty
settings of.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of job settings for the SureBackup job named "SureJob 02". The
SureBackup job is obtained with Get-VSBJob and piped down.
Example 2
This command looks for the list of job settings for the SureBackup job represented by the $SureJob
variable. The SureBackup job is obtained with Get-VSBJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of all SureBackup sessions that have been run.
Run Get-VSBTaskSession to get the list of all tasks performed during the specific SureBackup session.
Run Get-VBRBackupSession to get list of backup sessions that have been run.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all backup sessions.
Get-VSBSession
Example 2
This command looks for the SureBackup session named "Winserver SureJob".
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBSession
Detailed Description
This cmdlet returns the list of tasks performed during the specified SureBackup session.
Run Get-VBRTaskSession to get the tasks for backup, replication and backup copy sessions.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the SureBackup
(ByValue,
Session session the tasks of which you True 1 False
ByProperty
want to get.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command gets the list of tasks performed for the VMs named "DC" and "DNS" in the SureBackup
job session represented by the $"Exchange SureJob" variable. The SureBackup session is obtained
with Get-VSBSession and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet lets you edit job settings of SureBackup jobs.
This cmdlet returns the CDRJobOptions object containing the default settings of the SureBackup job
you want to edit. You can customize any setting that you want to apply. This object is then used in the
Set-VSBJobOptions cmdlet.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet removes a specified SureBackup job from Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the SureBackup job represented by the $surejob variable. The SureBackup job
is obtained with Get-VSBJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet clears the custom settings of the specified SureBackup job and restores their default
values.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the SureBackup job (ByValue,
Job True Named False
you want to edit. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command sets default settings to SureBackup jobs named "SureBackup Job 1" and "SureBackup
Job 2". The jobs object is obtained with Get-VSBJob and piped down.
Example 2
This command sets default settings to the SureBackup job represented by the $SureJob variable. The
job object is obtained with Get-VSBJob and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet applies customized job options to SureBackup jobs.
To customize the SureBackup job options you need to first run the New-VSBJobOptions cmdlet. New-
VSBJobOptions returns the CDRJobOptions object containing the set of default SureBackup job
options. You can customize any of these options and apply further to a SureBackup job.
Run Set-VBRJobOptions to edit job options of backup, replication or copy job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command applies the customized job options to the SureBackup job represented by the
$SureJob variable. The job is obtained with Get-VSBJob and assigned to the variable beforehand. The
options to apply are set to the $"Sure Options" variable beforehand by running New-VSBJobOptions.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Get-VBRJob
Detailed Description
This cmdlet sets custom schedule settings to the selected SureBackup job.
You can schedule the job to run:
• Daily on specific time, on specific days of week,
• Monthly on specific time, on specific days of month, on specific months,
• After a certain job you specify.
Daily:
DailyKind Weekdays: the job will run False Named False False
Monday through Friday,
Selected days: the job will run
on specific days (i.e. Saturdays).
Use the Days parameter to set
the specific days.
Monthly:
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command schedules the jobs named "SureBackup Job 01" and "SureBackup Job 05" to run daily
at 23:00 on weekdays. The SureBackup jobs object is obtained with Get-VSBJob and piped down.
Example 2
This command schedules all SureBackup jobs to run every last Saturday at 12:00 in February, May,
August and December. The SureBackup jobs object is obtained with Get-VSBJob and piped down.
Example 3
This command schedules the SureBackup job named "SureBackup Job 01" to run after the job
represented by the $job variable. The SureBackup job object is obtained with Get-VSBJob and piped
down.. The backup job object is obtained with Get-VBRJob and assigned to $job variable beforehand.
Applies to
Platform: VMware
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
New-VBRJobScheduleOptions
Detailed Description
This cmdlet applies customized scheduling options to a selected SureBackup job.
To customize the scheduling options you need to first run the New-VBRJobScheduleOptions cmdlet.
New-VBRJobScheduleOptions returns the ScheduleOptions object containing the set of default
scheduling options. You can customize any of these options and apply further to any kind of jobs.
Run Set-VBRJobScheduleOptions to set scheduling options of backup, replication or copy job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command applies the customized scheduling options to the SureBackup job represented by the
$SureJob variable. The job object is obtained with Get-VSBJob and assigned to the variable
beforehand. The options to apply are set to the $"Schedule Options" variable beforehand by running
New-VBRJobScheduleOptions.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet allows you to start a created SureBackup job.
When you create a job, you need to run it manually unless you enable a job schedule. Run Set-
VSBJobSchedule to schedule the SureBackup job to run automatically.
Run Stop-VSBJob to stop a running SureBackup job.
Run Start-VBRJob to start a backup, replication or copy job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command starts the SureBackup job represented by the $SureJob variable. The job object is
obtained with Get-VSBJob and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VSBJob
Detailed Description
This cmdlet stops a running SureBackup job. The job is stopped once, the scheduled SureBackup job
will start the next scheduled time.
Run Start-VSBJob to start the job manually.
Run Stop-VBRJob to stop a backup, replication or copy job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command stops the SureBackup job represented by the $"AD SureJob" variable. The needed job
object is obtained with Get-VSBJob and assigned to the variable beforehand.
Note: Veeam PowerShell terminates support for restoring from tape archives. It is recommended to perform
the tape restore operation with Veeam Backup & Replication UI for full functionality. The tape restore
cmdlets remain available in Veeam Backup & Replication v.8.0 but will not be supported in further
versions.
Removes a tape
Remove-VBRTapeServer Remove-VBRTapeServer
server
Removes a tape
Remove-VBRTapeLibrary Remove-VBRTapeLibrary
library
Removes a media
Remove-VBRTapeMediaPool Remove-VBRTapeMediaPool
pool
Manage tapes
Operation VMware Hyper-V
Moves a tape to
Move-VBRTapeMedium Move-VBRTapeMedium
another media pool
Modifies a tape
Set-VBRTapeMedium Set-VBRTapeMedium
description
Enables overwrite
Enable-VBRTapeProtection Enable-VBRTapeProtection
protection for a tape
Disables overwrite
Disable-VBRTapeProtection Disable-VBRTapeProtection
protection for a tape
Creates a backup to
Add-VBRBackupToTapeJob Add-VBRBackupToTapeJob
tape job
Modifies a backup to
Set-VBRBackupToTapeJob Set-VBRBackupToTapeJob
tape job
Performs tape
Start-VBRTapeCatalog Start-VBRTapeCatalog
catalogization
Performs tape
Start-VBRTapeInventory Start-VBRTapeInventory
inventory
Object Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMediaPool
New-VBRFullBackupToTapePolicy
New-VBRBackupToTapeScheduleOptions
Get-VBRJob
Get-VBREPJob
Get-VBRBackupRepository
Return Type
VBRBackupToTapeJob
Detailed Description
This cmdlet creates a new backup to tape job.
The backup to tape job archives backups that were produced by particular backup or Endpoint jobs or
stored on particular backup repositories. Use the Object parameter to set a backup job or a backup
repository as source to the tape job.
Note: If you choose to archive data from backup repositories, the backup to tape job will process only the
backups that were created with backup jobs configured on this Veeam backup server. Imported
backups and configuration backups will be skipped from processing.
UseHardware Indicates that tape library must False Named False False
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMediaPool
New-VBRFileToTapeBackupPolicy
New-VBRFileToTapeObject
Return Type
VBRFileToTapeJob
Detailed Description
This cmdlet creates a new file to tape job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Default: True.
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Get-VBRTapeMedium
Get-VBRTapeVault
Get-VBREncryptionKey
New-VBRTapeMediaPoolRetentionPolicy
New-VBRTapeMediaSetCreationPolicy
Return Type
VBRTapeMediaPool
Detailed Description
This cmdlet creates a new custom media pool in a selected tape library.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Description If not set, Veeam Backup & False Named False False
Replication will enter date
and time of creation by
default.
Library Specifies the tape library in True Named True (by False
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a media pool named 'AD Backups Encrypted'. The offline tape will be moved to
the 'Omega' vault. The tape archive will be encrypted with the 'Veeam Administrator' encryption key.
The media set creation policy and the retention policy will be configured beforehand.
• The description of the new media pool is set to 'Active Directory Encrypted Backups'.
• The library in which the media pool is created is obtained with Get-VBRTapeLibrary and
assigned to the '$HPtapelibrary' variable beforehand.
• The tapes that will be included to the media pool are obtained with Get-VBRTapeMedium
and assigned to the '$media' variable beforehand.
• The MoveOfflineToVault parameter is used to move the tapes to vault. The target vault is
obtained with Get-VBRTapeVault and assigned to the '$vault' variable beforehand.
• The EnableEncryption parameter is set to encrypt the data. The encryption key that must be
used is obtained with Get-VBREncryptionKey and assigned to the '$securepassword' variable
beforehand.
• The custom policy for creating media sets is configured with New-
VBRTapeMediaSetCreationPolicy and assigned to the '$mediasetpolicy' variable beforehand.
The media set name is set to "AD Daily %date%".
• The custom retention policy is configured with New-VBRTapeMediaPoolRetentionPolicy and
assigned to the '$retentionpolicy' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Return Type
VBRTapeServer
Detailed Description
This cmdlet adds a tape server to the Veeam Backup & Replication managing console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a server represented by the '$tapeserver' variable as a tape server. The server is
obtained with Get-VBRServer and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRTapeVault
Detailed Description
This cmdlet creates a new tape vault.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeDrive
Return Type
None
Detailed Description
This cmdlet disables a selected tape library recording drive. When you disable a drive, Veeam Backup
& Replication stops using it for read or write operations. You can disable a drive, for example, for
maintenance.
Run Enable-VBRTapeDrive to enable the drive.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command disables a drive represented by the '$drive1' variable. The drive object is obtained with
Get-VBRTapeDrive and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Return Type
VBRTapeMedium[]
Detailed Description
This cmdlet disables protection that was previously enabled for tapes.
You can disable protection of tapes that are both online or offline. When you disable protection, the
tape retention period returns to media pool settings.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Eject-VBRTapeMedium [<CommonParameters>]
-OR-
Eject-VBRTapeMedium -Medium <VBRTapeMedium[]>
[<CommonParameters>]
-OR-
Eject-VBRTapeMedium -Drive <VBRTapeDrive[]> [<CommonParameters>]
Related Commands
Get-VBRTapeMedium
Get-VBRTapeDrive
Return Type
None
Detailed Description
This cmdlet ejects tape that is located in drive. The ejected tape is moved to a standard library slot.
You can eject a tape that is known to be located in drive, or eject a tape located in a selected drive, or
eject tapes in all drives managed by Veeam Backup & Replication. This cmdlet provides three scenarios
for each case.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Drive Specifies the drive True Named True (by Value False
from which you want FromPipeline,
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeDrive
Return Type
None
Detailed Description
This cmdlet enables a selected tape library recording drive that was previously disabled.
You can disable a tape drive by running Disable-VBRTapeDrive.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command enables a drive represented by the '$drive1' variable. The drive object is obtained with
Get-VBRTapeDrive and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Return Type
VBRTapeMedium[]
Detailed Description
This cmdlet sets software overwrite protection for selected tapes.
Protection sets lifelong retention period for the selected tapes overriding the retention settings of the
media pool.
You can set protection for both online or offline tapes that contain data.
The protection can be switched off at any time. The retention settings will be changed to the value set
for the media pool. Run Disable-VBRTapeProtection to switch off the protection.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Return Type
VBRBackupSession
Detailed Description
This cmdlet erases data from the selected tapes.
The cmdlet provides two scenarios for erasing options:
Short: only the tape data header is cleared. The tape becomes available for overwriting. Short
erase is a quick procedure.
Long: all data is cleared from tape. This procedure requires more time.
You cannot run erase for the following tapes:
offline tapes
tapes used by any jobs
tapes with software or hardware protection.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Return Type
VBRBackupSession
Detailed Description
This cmdlet exports selected tapes to the Import/Export slot. You need to to run the exporting
procedure if you want to take the tapes out of the tape library.
Note: Import/export commands are available only for the devices that support corresponding operations
and include I/E slot.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Return Type
VBRTapeDrive[]
Detailed Description
This cmdlet returns the list of tape recording drives. You can also view the model name, the state of
the drive and whether it is enabled or disabled.
You can get the whole list of drives throughout all libraries, or the list of drives within specified library,
or search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for a tape drive named "Drive1" in the library named 'HP MSL G3 Series 3.00'. The
library object is obtained with Get-VBRTapeLibrary and piped down.
Example 2
This command looks for a tape drive named "Drive1" in the library represented by the $"LibHP3"
variable. The library object is obtained with Get-VBRTapeLibrary and assigned to the variable
beforehand.
Example 3
This command looks for a tape drives with particular slots addresses in a tape library named 'HP MSL
G3 Series 3.00'. The library object is obtained with Get-VBRTapeLibrary and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRBackupToTapeJob or VBRFileToTapeJob
Detailed Description
This cmdlet returns the list of tape jobs created on this Veeam backup server.
You can get backup to tape jobs and file to tape jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeServer
Return Type
VBRTapeLibrary[]
Detailed Description
This cmdlet returns the list of tape libraries connected to Veeam Backup & Replication.
You can get the list of all tape libraries, narrow down your search to particular tape servers or search
for instances directly by name or ID.
Note that tape libraries are added to Veeam Backup & Replication automatically when you add tape
server with connected library. Run Add-VBRTapeServer to add tape server.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command gets a list of all tape libraries connected to Veeam Backup & Replication.
Get-VBRTapeLibrary
Example 2
This command looks for all tape libraries connected to the tape server named 'Sydney_Tape_Server'.
The tape server is obtained with Get-VBRTapeServer and piped down.
You can view the GUID number of the tape library object:
PS C:\PS> $SydneyTapeLibraryId
Guid
-------
2f1fdc3c-8a97-4fa0-b631-74a039e64d5c
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Return Type
VBRTapeMediaPool[]
Detailed Description
This cmdlet returns the list of media pools managed by Veeam Backup & Replication.
You can get the list of media pools within specified library, or search for instances directly by name or
ID.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all media pools in Veeam Backup & Replication.
Get-VBRTapeMediaPool
Example 2
This command looks for all media pools in the 'HP MSL G3 Series 3.00' library.
The library is obtained with Get-VBRTapeLibrary and piped down.
Example 3
This command looks for the media pools named 'AD Full Backup' and 'SharePoint Full Backups' in the
'HP MSL G3 Series 3.00' library.
The library is obtained with Get-VBRTapeLibrary and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Get-VBRTapeMediaPool
Get-VBRTapeLibrary
Detailed Description
This cmdlet returns the list of tapes managed by Veeam Backup & Replication.
You can get the list of all tapes, or search for instances directly by name or ID, or get the list of tapes in
a particular library, media pool, vault or drive. Use an appropriate scenario for each case.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
The following command gets a tape with the barcode "00233400".
Example 3
This command looks for the list of tapes belonging to the media pool named "Incremental Backups".
The media pool is obtained with Get-VBRTapeMediaPool and assigned to the '$IncrementalBackups'
variable beforehand.
Example 4
This command looks for the expired tapes within the Sydney vault. The vault is obtained with Get-
VBRTapeVault and assigned to the '$Sydney' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Return Type
VBRTapeServer[]
Detailed Description
This cmdlet returns the list of tape servers connected to Veeam Backup & Replication.
You can get the list of all tape servers or narrow down the output to the servers of specific type, or
search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRTapeServer
Example 2
This command looks for all tape servers connected to the host named 'Host01'. The 'Host01' server is
obtained with Get-VBRServer and piped down.
Example 3
This command looks for the tape server named 'Sydney_Tape_Server' on the server represented by
the '$Host01' variable. The 'Host01' server is obtained with Get-VBRServer and assigned to the variable
beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Get-VBRTapeVault [<CommonParameters>]
-OR-
Get-VBRTapeVault [-Id <guid[]>] [<CommonParameters>]
-OR-
Get-VBRTapeVault [-Name <string[]>] [<CommonParameters>]
Related Commands
None
Return Type
VBRTapeVault[]
Detailed Description
This cmdlet returns the list of existing tape vaults.
You can get the list of all tape vaults or search for instances directly by name or ID.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRTapeVault
Example 2
This command looks for a vault named 'Sydney Remote Storage'.
Example 3
This command looks for a vault with a particular ID by piping down the variable containing the ID.
1. The ID is obtained by getting the ID property of the vault object and assigned to the
'$SydneyVaultID' variable.
PS C:\PS> $SydneyVaultID
Guid
-------
4be3b4c9-a620-4abd-a68b-b8a697115781
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Return Type
VBRBackupSession[]
Detailed Description
This cmdlet imports tapes newly loaded to a tape library.
You need to run importing procedure against all new tapes. Importing moves tapes from I/E slot to
library standard slots.
Note: Import/export commands are available only for the devices that support corresponding operations
and include I/E slot.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command imports tapes to a selected tape library.
The tape library is obtained with item is obtained by Get-VBRTapeLibrary and assigned to the '$library'
variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Get-VBRTapeMediaPool
Get-VBRTapeVault
Return Type
None
Detailed Description
This cmdlet moves selected tapes to another media pool or media vault.
The cmdlet provides two scenarios for each case:
Moving tapes to another media pool
Note the following limitations:
You cannot move tapes that are used by any tape job.
You cannot move protected tapes.
You cannot move tapes to the Retired media pool.
You cannot move tapes from one tape library to another.
Important! When you move a tape to any media pool, Veeam Backup & Replication marks this tape as free.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command moves a tape to the Omega media vault.
• The needed tape is obtained with Get-VBRTapeMedium and assigned to the '$medium'
variable beforehand.
• The vault to which you want to move the tape is is obtained with Get-VBRTapeVault and
assigned to the '$OmegaVault' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
New-VBRBackupToTapeScheduleOptions [-Type
<VBRBackupToTapePolicyType>] [-DailyOptions <VBRDailyOptions>] [-
MonthlyOptions <VBRMonthlyOptions>] [-BackupWindowOptions
<VBRBackupWindowOptions>] [-Job <VBRJob>] [-Enabled][-
WarningAction <ActionPreference>] [-WarningVariable <String>]
[<CommonParameters>]
Related Commands
New-VBRDailyOptions
New-VBRMonthlyOptions
New-VBRBackupWindowOptions
Get-VBRJob
Return Type
VBRBackupToTapeScheduleOptions
Detailed Description
This cmdlet creates the VBRBackupToTapeScheduleOptions object. This object contains schedule
settings for backup to tape job and is used further to apply these settings to an existing backup to
tape job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRBackupWindowOptions
Detailed Description
This cmdlet creates the VBRBackupWindowOptions object. This object contains the backup window
settings. The backup window sets a time period within which the job is allowed to run. The
VBRBackupWindowOptions object is used further to apply these settings to existing jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRDailyOptions
Detailed Description
This cmdlet creates the VBRDailyOptions object. This object contains the daily schedule settings and is
used further to apply these settings to existing jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
New-VBRFileToTapeBackupPolicy [-Type
<VBRFileToTapeBackupPolicyType>] [-DailyOptions
<VBRDailyOptions>] [-MonthlyOptions <VBRMonthlyOptions>] [-
Enabled] [-WarningAction <ActionPreference>] [-WarningVariable
<String>] [<CommonParameters>]
Related Commands
New-VBRDailyOptions
New-VBRMonthlyOptions
Return Type
VBRFileToTapeBackupPolicy
Detailed Description
This cmdlet creates the VBRFileToTapeBackupPolicy object. This object contains backup creation
schedule settings for file to tape job and is used further to apply these settings to an existing file to
tape job.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Get-VBRCredentials
Return Type
VBRFileToTapeObject
Detailed Description
This cmdlet creates a VBRFileToTapeObject object. This object contains files or directories that you
want to add to a file to tape job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
New-VBRFullBackupToTapePolicy [-Type
<VBRFullBackupToTapePolicyType>] [-MonthlyOptions
<VBRMonthlyOptions>] [-WeeklyOnDays <DayOfWeek[]>] [-
WarningAction <ActionPreference>] [-WarningVariable <String>]
[<CommonParameters>]
Related Commands
New-VBRMonthlyOptions
Return Type
VBRFullBackupToTapePolicy
Detailed Description
This cmdlet creates the VBRFullBackupToTapePolicy object. This object contains schedule settings for
creating virtual synthesized full backup for tape and is used further to apply these settings to an
existing backup to tape job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Monthly Used to set months for the Type False Named False False
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRMonthlyOptions
Detailed Description
This cmdlet creates the VBRMonthlyOptions object. This object contains the job monthly schedule
settings and is used further to apply these settings to existing jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
New-VBRTapeMediaPoolRetentionPolicy [-Period
<VBRTapeMediaPoolPeriod> {None | Days | Weeks | Months}] [-Type
<VBRTapeMediaPoolRetentionType> {Never | Period | Cyclic}] [-
Value <int>] [<CommonParameters>]
Related Commands
None
Return Type
VBRTapeMediaPoolRetentionPolicy
Detailed Description
This cmdlet creates the VBRTapeMediaPoolRetentionPolicy object. This object contains the retention
settings of media pool.
Retention policy sets overwrite protection rules. The rules are set to media pool and are applied to all
tapes belonging to this media pool. After the retention period ends, the tape is queued for
overwriting.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command switches off the retention. The new settings are assigned to a variable that can be
further used in Set-VBRTapeMediaPool to apply them.
• The new retention settings are assigned to the '$noretention' variable.
• The Type is set to 'Cyclic'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
New-VBRTapeMediaSetCreationPolicy [-DailyOptions
<VBRDailyOptions>] [-Type <VBRTapeMediaSetCreationPolicyType>
{Never | Always | Daily | Monthly}] [<CommonParameters>]
Related Commands
New-VBRDailyOptions
Return Type
VBRTapeMediaSetCreationPolicy
Detailed Description
This cmdlet creates a new VBRTapeMediaSetCreationPolicy object. This object contains the set of rules
for creating media sets. The media set creation policy in applied to media pools configuration.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a set of media set creation rules allowing to create a new media set for every
backup session.
Example 2
This command creates a set of media set creation rules. A new media set will be created every Sunday
at 22:00.
• First, the schedule for creating media sets are configured with New-VBRDailyOptions. The
schedule is assigned to the '$dailyoptions' variable.
• Second, the media sets creation rules are set. The Type parameter is set to Daily.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Return Type
None
Detailed Description
This cmdlet removes a specified tape library from Veeam Backup & Replication.
When you remove a tape library, you stop managing it with your Veeam Backup & Replication console.
To remove a tape library, mind the following limitations:
• Only the libraries in the offline status can be removed. To remove a tape library, you need to
physically disconnect it from the tape server first. Alternatively, you can remove the tape
server to which the tape library is connected.
• You can remove the tape devices that are not used by any tape jobs. If any jobs are using the
media pools assigned to the tape device, first redirect these jobs to other media pools.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes a tape library named 'HP MSL G3 Series 3.00'. The library object is obtained
with Get-VBRTapeLibrary and piped down.
Example 2
This command removes a tape library represented by '$SydneyTapeLibrary' variable. The library object
is obtained with Get-VBRTapeLibrary and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMediaPool
Return Type
None
Detailed Description
This cmdlet removes a selected media pool from Veeam Backup & Replication.
Important! You can only delete custom media pools; predefined media pools cannot be deleted.
You cannot delete a media pool that contains tapes. To be able to delete such a pool, first move tapes
from this pool to other media pools.
You cannot delete media pools used by an existing backup/files to tape copy job. In case you
definitely have to disable this pool, you should first modify the corresponding job to target another
media pool.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the media pool named "Winserver MediaPool". The media pool is obtained
with Get-VBRTapeMediaPool and piped down.
Example 2
This command removes the media pool represented by the $pool variable. The media pool is
obtained with Get-VBRTapeMediaPool and assigned to $pool variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeServer
Return Type
None
Detailed Description
This cmdlet removes a specified tape server from Veeam Backup & Replication.
When you remove a tape server, Veeam Backup & Replication unassigns the tape server role from the
server, so it is no longer used as a tape server. The actual server remains connected to Veeam Backup
& Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes a tape server named "Sydney_Tape_Server". The tape server is obtained with
Get-VBRTapeServer and piped down.
Example 2
This command removes tape servers represented by '$SydneyTapeServer' and '$NewYorkTapeServer'
variables. The tape servers are obtained with Get-VBRTapeServer and assigned to the variables
beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeVault
Return Type
None
Detailed Description
This cmdlet removes a specified tape vault from Veeam Backup & Replication.
When you remove a vault, you do not remove the tapes stored in it.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes a tape vault named 'Sydney Remote Storage'. The vault object is obtained
with Get-VBRTapeVault and piped down.
Example 2
This command removes tape vaults represented by '$SydneyRemoteStorage' and
'$NewYorkRemoteStorage' variables. The vaults objects are obtained with Get-VBRTapeVault and
assigned to the variables beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Get-VBREPJob
Get-VBRBackupRepository
Get-VBRTapeMediaPool
New-VBRFullBackupToTapePolicy
New-VBRBackupToTapeScheduleOptions
Get-VBRBackupRepository
Return Type
VBRBackupToTapeJob
Detailed Description
This cmdlet modifies a selected backup to tape job that was created before. To modify settings, you
need to enter the corresponding parameters with new values. The parameters that you omit will
remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies virtualized
synthetic full backup for
FullBackup tape settings.
False Named False False
Policy Accepts
VBRFullBackupToTapePoli
cy object.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
VBRBackupWindowOptions
Detailed Description
This cmdlet modifies the VBRBackupWindowOptions object that was created earlier. To modify
settings, you need to enter the corresponding parameters with new values. The parameters that you
omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeJob
Get-VBRTapeMediaPool
New-VBRFileToTapeBackupPolicy
New-VBRFileToTapeObject
Return Type
VBRFileToTapeJob
Detailed Description
This cmdlet modifies a selected file to tape job that was created before. To modify settings, you need
to enter the corresponding parameters with new values. The parameters that you omit will remain
unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
description of the file to
tape job.
Description If not set, Veeam False Named False False
Backup & Replication
will enter date and time
of creation by default.
Specifies virtualized
synthetic full backup for
tape settings.
Accepts
VBRFileToTapeBackupP
olicy object.
By default, the
following settings are
applied:
Type: Daily
DailyOptions:
Type:
SelectedDays,
Period: 18:00,
DayOfWeek:
FullBackup Saturday
False Named False False
Policy MonthlyOptions:
Period: 22:00,
DayNumberIn
Month:
Fourth,
DayOfWeek:
Saturday,
Months:
January,
February,
March, April,
May, June,
July, August,
September,
October,
November,
December
Enabled: false
Specifies incremental
backup settings.
Accepts
VBRFileToTapeBackupP
olicy object.
By default, the
following settings are
applied:
Type: Daily.
DailyOptions:
Type:
SelectedDays,
Period: 18:00,
DayOfWeek:
Saturday.
Incremental
MonthlyOptions: False Named False False
BackupPolicy
Period: 22:00,
DayNumberIn
Month:
Fourth,
DayOfWeek:
Saturday,
Months:
January,
February,
March, April,
May, June,
July, August,
September,
October,
November,
December.
Enabled: false.
Specifies the source file
system object.
Accepts
Object VBRFileToTapeObject False Named False False
object.
You can assign multiple
files to this object.
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Return Type
None, VBRTapeLibrary (use -PassThru to obtain output object)
Detailed Description
This cmdlet modifies the name of the selected tape library.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command modifies the name of the tape library represented by the '$NYTapeLibrary' variable.
The tape library object is obtained by running Get-VBRTapeLibrary and assigned to the variable
beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMediaPool
Get-VBRTapeLibrary
Get-VBRTapeMedium
Get-VBRTapeVault
Get-VBREncryptionKey
New-VBRTapeMediaPoolRetentionPolicy
New-VBRTapeMediaSetCreationPolicy
Return Type
VBRTapeMediaPool
Detailed Description
This cmdlet modifies media pool that was created before. To modify settings, you need to enter the
corresponding parameters with new values. The parameters that you omit will remain unchanged.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds encryption settings to a selected media pool.
• The media pool that is modified is obtained with Get-VBRTapeMediaPool and assigned to
'$mediapool' variable beforehand.
• The -EnableEncryption parameter is used to instruct the media pool to encrypt the archived
data.
• The encryption key that must be used is obtained with Get-VBREncryptionKey and assigned
to '$encryptionkey' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeMedium
Return Type
VBRTapeMedium
Detailed Description
This cmdlet modifies properties of a selected tape. You can modify name and/or description of the
tape. To modify settings, you need to enter the corresponding parameters with new values. The
parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command renames the '0014001F' tape into 'SQL 9/2014' and sets a description for it.
The tape is obtained with Get-VBRTapeMedium and piped down.
Example 2
This command renames a selected tape into 'SQL encrypted'.
The tape is obtained with Get-VBRTapeMedium and assigned to the '$tape' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeServer
Return Type
None, VBRTapeServer (use -PassThru to obtain output object)
Detailed Description
This cmdlet modifies tape server that was created before.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeVault
Return Type
None, VBRTapeVault (use -PassThru to obtain output object)
Detailed Description
This cmdlet modifies tape vault that was created before. To modify settings, you need to enter the
corresponding parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command modifies the name and the description of the vault named 'Sydney Remote Storage'.
The vault object is obtained by running Get-VBRTapeVault and piped down. The PassThru parameter
is set to get the output and view the details.
Example 2
This command modifies the name of the vault represented by the '$SydneyRemoteStorage' variable.
The vault object is obtained by running Get-VBRTapeVault and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Get-VBRTapeMedium
Return Type
VBRBackupSession
Detailed Description
This cmdlet starts catalog process. Catalog process scans tape contents and registers tapes in the
Veeam Backup & Replication database after which Veeam Backup & Replication is able to administrate
tape allocation and consumption and track data written to tapes.
You can run catalog job for selected libraries or for selected tapes.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRTapeLibrary
Get-VBRTapeMedium
Return Type
VBRBackupSession
Detailed Description
This cmdlet starts inventory process.
You can run inventory job for selected libraries or for selected tapes.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Created by
Add-VBRBackupToTapeJob
Passed to
Set-VBRBackupToTapeJob
Properties
Property Type Description
CBackupJob[]
The backup job or backup
Object or repository set as the source for
the tape job.
CBackupRepository[]
VBRBackupToTapeScheduleOptio
ScheduleOptions The job schedule.
ns
Created by
New-VBRBackupToTapeScheduleOptions
Passed to
Add-VBRBackupToTapeJob
Set-VBRBackupToTapeJob
VBRBackupToTapeJob
Properties
Property Type Description
Created by
New-VBRFileToTapeBackupPolicy
Passed to
Add-VBRFileToTapeJob
Set-VBRFileToTapeJob
VBRFileToTapeJob
Properties
Property Type Description
Created by
Add-VBRFileToTapeJob
Passed to
Set-VBRFileToTapeJob
Properties
Property Type Description
Created by
New-VBRFileToTapeObject
Passed to
Add-VBRFileToTapeJob
Set-VBRFileToTapeJob
VBRFileToTapeJob
Properties
Property Type Description
Created by
New-VBRFullBackupToTapePolicy
Passed to
Add-VBRBackupToTapeJob
Set-VBRBackupToTapeJob
Properties
Property Type Description
Created by
None
Passed to
Get-VBRTapeDrive
Disable-VBRTapeDrive
Enable-VBRTapeDrive
Get-VBRTapeMedium
Eject-VBRTapeMedium
Properties
Property Type Description
Created by
None
Passed to
Rescan-VBREntity
Get-VBRTapeDrive
Start-VBRTapeCatalog
Start-VBRTapeInventory
Get-VBRTapeLibrary
Remove-VBRTapeLibrary
Set-VBRTapeLibrary
Add-VBRTapeMediaPool
Get-VBRTapeMediaPool
Get-VBRTapeMedium
Import-VBRTapeMedium
Properties
Property Type Description
Created by
Add-VBRTapeMediaPool
Passed to
Add-VBRBackupToTapeJob
Add-VBRFileToTapeJob
Set-VBRBackupToTapeJob
Set-VBRFileToTapeJob
Get-VBRTapeMediaPool
Remove-VBRTapeMediaPool
Set-VBRTapeMediaPool
Get-VBRTapeMedium
Move-VBRTapeMedium
Properties
Property Type Description
Created by
New-VBRTapeMediaPoolRetentionPolicy
Passed to
Add-VBRTapeMediaPool
Set-VBRTapeMediaPool
VBRTapeMediaPool
Properties
Property Type Description
Created by
New-VBRTapeMediaSetCreationPolicy
Passed to
Add-VBRTapeMediaPool
Set-VBRTapeMediaPool
VBRTapeMediaPool
Properties
Property Type Description
Created by
None
Passed to
Start-VBRTapeCatalog
Start-VBRTapeInventory
Add-VBRTapeMediaPool
Enable-VBRTapeProtection
Disable-VBRTapeProtection
Eject-VBRTapeMedium
Erase-VBRTapeMedium
Export-VBRTapeMedium
Get-VBRTapeMedium
Move-VBRTapeMedium
Set-VBRTapeMedium
VBRTapeDrive
VBRTapeMediaPool
VBRTapeVault
Properties
The "?" mark indicates that the type property accepts zero values.
Created by
Add-VBRTapeServer
Passed to
Rescan-VBREntity
Get-VBRTapeLibrary
Get-VBRTapeServer
Remove-VBRTapeServer
Set-VBRTapeServer
Properties
Property Type Description
Created by
Add-VBRTapeVault
Passed to
Add-VBRTapeMediaPool
Set-VBRTapeMediaPool
Get-VBRTapeMedium
Move-VBRTapeMedium
Get-VBRTapeVault
Remove-VBRTapeVault
Set-VBRTapeVault
VBRTapeMediaPool
Properties
Property Type Description
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds a new vCloud Director server to Veeam Backup & Replication.
When adding a new vCloud Director server you will need to provide either username/password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Credentials Specifies the credentials you want True Named False False
to use for authenticating with the
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a new server named "vCloudDirectorServer" having the
https://vclouddirectorserver:443 URL address. The username is "Administrator" and the password is
"password".
Example 2
This command creates a new server named "vCloudDirectorServer" having the
https://vclouddirectorserver:443 URL address. The credentials are obtained with Get-VBRCredentials
and assigned to the $Administrator variable beforehand. The -Description parameter is not set to get
the default description created.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Get-VBRJob
Get-VBRBackupRepository
Get-VBRWANAccelerator
Detailed Description
This cmdlet creates a new vCloud backup copy job.
The backup copy job is copying backup files from the source backup repository to the target backup
repository. The backup copy job runs continuously synchronizing the backup repositories in user-
defined time periods.
The cmdlet provides two scenarios that can be used for on-site and off-site modes:
• To transfer the data efficiently to to the off-site location, you can use the WAN accelerator
technology. WAN accelerator is a backup infrastructure component that optimizes file
transfer via WAN by means of data deduplication. The role of a WAN accelerator can be
assigned to a dedicated Windows-based machine (physical or virtual). You should always use
a pair of WAN accelerators set on source and target sides. This mode is recommended for off-
site backups. To create and run a backup copy job using WAN accelerators you need to have
source and target WAN accelerators created.
Run Add-VBRWANAccelerator to create a WAN accelerator. WAN optimization is available
only in Veeam Backup & Replication Enterprise Plus Edition.
• You can create a backup copy job using direct operation. With this method, the job sends the
data directly to the target backup repository without performing data deduplication. This
mode is recommended for on-site backups, or off-site backups using fast connections.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a backup copy job named "vCloud CopyJob1" with the following parameters:
• The source and target WAN accelerators are obtained with Get-VBRWANAccelerator and
assigned to $wansource and $wantarget variables accordingly beforehand,
• The VMs to copy are obtained with Find-VBRvCloudEntity and assigned to the $vms variable
beforehand,
• The repository to where the VM data will be copied is obtained with Get-
VBRBackupRepository and assigned to the $repository variable beforehand.
Example 2
This command creates a direct backup copy job with the following parameters:
• The name of the job is "DC CopyJob",
• The backup job named "DC Backup" with the VMs to be copied is obtained with Get-
VBRBackup and piped down,
• The -Repository parameter is not set to copy the VMs to the default backup repository.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Find-VBRvCloudEntity
Get-VBRBackupRepository
Detailed Description
This cmdlet creates a new vCloud Director backup job.
You should always use vCD backup jobs to back up VMs managed by vCloud Director. If you back up
VMs managed by vCloud Director using a regular backup job, Veeam Backup & Replication will
perform backup at the level of the underlying vCenter Server and will not capture vApp metadata. As
a result, you will not let you restore a fully functioning VM to vCloud Director.
Note that when you create a backup job, you need to run it manually unless you enable a job
schedule.
Run Start-VBRJob to start the created job.
Run Set-VBRJobSchedule to set schedule for the job.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a new vCloud Director backup job with the following parameters:
• Job name: "vCD Backup Job 1".
• $vm: the VM to backup.
• $brepository: the backup repository to store the backup files.
• Description: "vCloud Director Backup Job".
Example 2
This command creates a new vCloud Director backup job with the following parameters:
• Job name: "vCD Backup Job 2".
• Description: "vCloud Director Backup Job".
• The VM named "vCloud Server" is obtained with Find-VBRvCloudEntity and piped down.
• The -BackupRepository parameter is not set to enable use of the default backup repository.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Find-VBRvCloudEntity ([-Vc])
Get-VBRCredentials
Detailed Description
This cmdlet adds a new vCenter server to Veeam Backup & Replication console. The vCenter server is
registered as a part of vCloud Director .
When adding a new vCenter server, you will need to provide either username and password or
credentials. This cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the vCloud server
(ByValue,
vCloudServer you want to connect a vCenter True 0 False
ByProperty
to.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a new vCenter server with the following parameters:
• The server where the new vCenter will be registered is represented by $s variable.
• The new vCenter server is obtained with Find-VBRvCloudEntity ([-Vc]) and assigned to $vc
variable beforehand.
• The $creds variable contains the Administrator credentials record.
• The new vCenter name is "vCenter Server 2".
• The -Port parameter is set to 456 to set the connection through web-service port number 456
instead of default 443 port.
• The -Description parameter is not set to enable the default description.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet looks for a certain entity of vCloud Director.
You can get the whole list of vCloud entities, or the list of specified entities (i.e. vApps), or narrow
down the output by filtering by name.
Return Type
CVcdSystemItem
CVcdOrganizationItem
CVcdOrganizationVdcItem
CVcdVappItem
CVcdVmItem
CVcdOrgVdcStorageProfile
CVcdDatastoreRestoreInfo
CVcdVcInfo
View results as VM
VmTemplate False Named False False
templates.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the vCloud entities registered on the server with 172.16.1.13 IP address. The
server object is obtained with Get-VBRServer and piped down. The output is filtered by name
containing "SQL".
Example 3
This command looks for the vApps registered on the server named "vCloud Server". The server object
is obtained with Get-VBRServer and piped down.
Example 4
This command looks for the datastore named "Datastore 04" registered on the server represented by
$server variable. The server object is obtained with Get-VBRServer and assigned to the variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Find-VBRvCloudEntity ([-OrganizationVdc])
Detailed Description
This cmdlet is an assistant command creating a CVcdVAppRestoreSettings object that is further
used in the Start-VBRvCloudRestoreVApp cmdlet. This object gathers the parameters of a selected
vApp that will be needed for restore.
The vApp that you want to restore and its parameters are derived from the specified restore point
data. Use the -OrgVdc parameter to set another organization where you want to restore the vApp to.
You can customize any of the parameters that are derived from the restore point. For more
information, see the Advanced Setup below.
Advanced Setup
The restore parameters include the settings of the vApp, namely restore point, vApp name,
Organization vDC, and VMs included, as well as the settings of the VM: restore point, storage profile,
datastore and template. Each of these settings can be reset to user settings allowing to restore the
vApp i.e. to another organization, or with another vApp name, or apply other storage profiles to the
VMs.
When applying different restore settings, it is recommended to set "null" to all VM settings that you
leave unchanged to avoid conflicts when restoring the vApp to another infrastructure. For example, if
the target organization has no access to the datastore that is originally set for the vApp, PowerShell
will terminate your vApp restore job.
If you set "null" to all VM settings, Veeam Backup & Replication will apply the default settings of the
target organization.
Make sure that you set the parameters for all VMs that belong to the vApp, otherwise you will not be
able to run the restore job.
True
Specifies the restore point of
(ByValue,
RestorePoint the vApp you want to restore True 1 False
ByProperty
the vApp to.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Here you get the $restorepoint variable containing the vApp settings:
• vAppOib - the restore point of the vApp,
• OrgVdc - the organization vDataCenter where the vApp is registered,
• Vms - the list of VMs whithin the vApp,
• vAppName - the name of the vApp.
The $restoreparams variable now contains the data needed for the restore and can be used in the
Start-VBRvCloudRestoreVApp cmdlet.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Find-VBRvCloudEntity
Detailed Description
This cmdlet performs instant recovery of the selected vCloud VM. You can restore the VM to the
original location or to another vApp.
To restore the VM to another vApp indicate the desired vApp object for the -vApp parameter. To
perform restore to the original location, omit this parameter.
The VM that you want to restore and its parameters are derived from the specified restore point data.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore point of (ByValue,
RestorePoint True 1 False
the VM. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command starts instant recovery for the VM named "VM01". The VM is restored to another vApp
and is connected to another datastore.
• The VM restore point is obtained with Get-VBRRestorePoint and piped down. The most resent
restore point is selected with Select method,
• The VM is restored to a new vApp represented by the $vapp variable, the vApp is obtained
with Find-VBRvCloudEntity ([-VApp] option) and assigned to the variable beforehand,
• The -VmName parameter is omitted to restore the VM with its original name,
• The new datastore the VM will be connected to is represented by $datastore variable, the
datastore is obtained with Find-VBRDatastore and assigned to the variable beforehand,
• The -PowerOn parameter is set to power up the VM automatically right after it is restored,
• The reason for restore is "Configuration test",
• The RunAcync parameter is set to bring the process to the background.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Start-VBRvCloudRestoreVApp [-RestoreParams]
<CVcdVAppRestoreSettings> [-PowerUp][-Reason <string>][-
RunAsync][<CommonParameters>]
-OR-
Start-VBRvCloudRestoreVApp [-RestorePoint] <COib> [-PowerUp] [-
Reason <string>][-RunAsync][<CommonParameters>]
Related Commands
New-VBRvCloudVAppRestoreSettings
Get-VBRRestorePoint
Detailed Description
This cmdlet starts a restore session for a selected vApp.
With this cmdlet, you can restore the vApp to the original location or to another location, or with
different settings.
To restore the vApp to the original location you only need to indicate the desired restore point. Be
careful to specify the restore point of the vApp, not an individual VM which is not a valid value for this
cmdlet. Veeam Backup & Replication gets all the information needed for restore from the restore point
data.
To run restore to another location or with different settings you need to first create a
CVcdVAppRestoreSettings object which unifies all the settings options required for restore. The
CVcdVAppRestoreSettings object is created with the help of the New-
VBRvCloudVAppRestoreSettings cmdlet. See the New-VBRvCloudVAppRestoreSettings topic for
detailed instructions for advanced setup options.
This cmdlet provides two scenarios for each case.
Specifies the
True
CVcdVAppRestoreSettings
(ByValue,
RestoreParams object containing all settings True 1 False
ByProperty
required for the vApp
Name)
restore.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command restores a vApp to another location. The vApp named "vApp_01" is restored to
organization named "Org_02" with all other settings remaining unchanged.
To restore the vApp to another organization, you need to first customize the
CVcdVAppRestoreSettings object The CVcdVAppRestoreSettings object is obtained with New-
VBRvCloudVAppRestoreSettings:
The restore point of the vApp is obtained with Get-VBRRestorePoint by selecting the vApp named
"vApp_01" from the backup objects using the Where method. The restore point is piped down to the
New-VBRvCloudVAppRestoreSettings cmdlet. The obtained CVcdVAppRestoreSettings object is
assigned to the $restoreparams variable.
Now you need to run Start-VBRvCloudRestoreVApp with the customized $restoreparams variable. The
RunAcync parameter is set to bring the process to the background:
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Find-VBRvCloudEntity
Detailed Description
This cmdlet starts a restore session of a selected vCloud VM.
With this cmdlet, you can restore the VM to the original location or to another location, or with
different settings.
To restore a VM to the original location you only need to indicate the desired restore point. Be careful
to specify the restore point of the VM, not the vApp which is not a valid value for this cmdlet. Veeam
Backup & Replication gets all the information needed for restore from the restore point data.
To run restore to another location or with different settings you need to set the new settings values
with the parameters available in this cmdlet. These parameters are not obligatory, so you can type
only those that you want to change.
You cannot restore multiple VM with one command, to restore several VMs you need to start a restore
session for each one.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command restores a VM to another vApp and with another storage profile.
• The VM to restore and the restore point to which it should be restored is represented by the
$restorepoint variable. The restore point object is obtained with Get-VBRRestorePoint and
assigned to the variable beforehand,
• The vApp object to where the VM will be restored is represented by the $vapp variable. The
vApp object is obtained with Find-VBRvCloudEntity ([-VApp] option) and assigned to the
variable beforehand.
• The storage profile object that will be applied to the restored VM is represented by the
$profile variable. The storage profile object is obtained with Find-VBRvCloudEntity ([-
StorageProfile] option) and assigned to the variable beforehand.
Object Description
// Set cloud user account quotas. You will need a backup repository and a WAN
accelerator.
PS C:\PS> $repo = Get-VBRBackupRepository -Name "Omega
Repository"
PS C:\PS> $wan = Get-VBRWANAccelerator -Name "Omega Cloud WAN"
PS C:\PS> $golden = New-VBRCloudTenantResource -Repository
$repo -RepositoryFriendlyName "Golden Tier Repository 01" -
Quota 100 -EnableWanAccelerator -WanAccelerator $wan
PS C:\PS> $standard = New-VBRCloudTenantResource -Repository
$repo -RepositoryFriendlyName "Standard Tier Repository 01" -
Quota 10 -EnableWanAccelerator -WanAccelerator $wan
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRServer
Return Type
VBRCloudGateway
Detailed Description
This cmdlet creates a cloud gateway.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a new cloud gateway in the local network behind the NAT gateway.
• The server that will be used as the cloud gateway is obtained with Get-VBRServer and
assigned to the '$server' variable beforehand.
• The external NAT gateway IP is 104.45.95.227.
• The port that will be used by Veeam Backup & Replication to connect to the gateway server is
'6180'.
• The port that will be used by the NAT gateway is '7180'.
• The network mode is set to 'NAT'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCredentials
Return Type
VBRCloudProvider
Detailed Description
This cmdlet adds a new service provider to Veeam Backup & Replication.
You can add several providers using one cloud gateway to your Veeam backup console. The providers'
credentials must have different user names.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a cloud service provider. A custom port is used for connection and the SSL
certificate thumbprint verification is enabled for the service provider.
• The service provider IP address is '104.45.95.227'.
• The description is "Cloud gateway for SP".
• The port that will be used for enabling connection between the user's Veeam backup server
and the cloud gateway is set to '6252'.
• The credentials used to authenticate with the service provider is obtained with Get-
VBRCredentials and assigned to the '$credentials' variable beforehand.
• The VerifyCertificate parameter is used to enable the SSL certificate verification with
thumbprints. The thumbprint is 'e6 c0 e5 1a db 73 0c 13 b3 c3 74 d4 ee 93 ab d0 08 3f 7a a8'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
New-VBRCloudTenantResource
Return Type
VBRCloudTenant
Detailed Description
This cmdlet creates a new cloud user account.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command adds a user account without lease expiration settings.
• The user name is "ABC Company" and the description is the "User account for ABC company".
• The password is set to "pass123".
• The resources settings object is created with New-VBRCloudTenantResource and assigned to
the '$resources2' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudGateway
Return Type
VBRCloudGateway
Detailed Description
This cmdlet disables a selected cloud gateway. Disabling a gateway temporarily suspends all
operations on it. Run Enable-VBRCloudGateway to enable a disabled cloud gateway.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies a cloud
gateway you want to
disable. True (by Value
FromPipeline,
Cloud Accepts ValueFromPipeline
True Named False
Gateway VBRCloudGateway ByPropertyName)
object.
or False
You can assign multiple
gateways to this object.
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command disables a cloud gateway represented by the '$cloudgateway' variable.
The cloud gateway is obtained with Get-VBRCloudGateway and assigned to the variable beforehand.
Example 2
This command disables a cloud gateway with the 172.16.12.45 IP address.
The cloud gateway is obtained with Get-VBRCloudGateway and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudTenant
Return Type
None
Detailed Description
This cmdlet disables a cloud user account. Disabling a user account temporarily prevents the user
from using their account recourses. Run Enable-VBRCloudTenant to enable a disabled account.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command disables two cloud user accounts represented by the '$CloudUser1' and '$CloudUser2'
variables.
The cloud user accounts are obtained by Get-VBRCloudTenant and assigned to the variables
beforehand.
Example 2
This command disables the ABC company cloud user account.
The cloud user account is obtained by running Get-VBRCloudTenant and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudGateway
Return Type
VBRCloudGateway
Detailed Description
This cmdlet enables a selected cloud gateway that was previously disabled.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies a cloud
gateway you want to
enable. True (by Value
FromPipeline,
Cloud Accepts ValueFromPipeline
True Named False
Gateway VBRCloudGateway ByPropertyName)
object.
or False
You can assign multiple
gateways to this object.
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command enables a cloud gateway represented by the '$cloudgateway' variable.
The cloud gateway is obtained with Get-VBRCloudGateway and assigned to the variable beforehand.
Example 2
This command enables two cloud gateways with the 172.16.12.45 and 172.16.12.46 IP addresses.
The cloud gateways are obtained with Get-VBRCloudGateway and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudTenant
Return Type
None
Detailed Description
This cmdlet enables selected cloud user accounts that were previously disabled.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command enables two cloud user accounts represented by the '$CloudUser1' and '$CloudUser2'
variables.
The cloud user accounts are obtained by Get-VBRCloudTenant and assigned to the variables
beforehand.
Example 2
This command enables the ABC company cloud user account.
The cloud user account is obtained by running Get-VBRCloudTenant and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
None
Return Type
VBRCloudGateway[]
Detailed Description
This cmdlet returns the list of existing cloud gateways.
You can get the list of all existing cloud gateways or search for instances directly by name or ID. This
cmdlet provides syntax for three scenarios accordingly.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command returns all cloud gateways configured in Veeam Backup & Replication.
Get-VBRCloudGateway
Example 2
This command gets the cloud gateway with the 172.16.12.45 IP address.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
None
Return Type
VBRCloudProvider[]
Detailed Description
This cmdlet returns the list of service providers added to Veeam Backup & Replication.
You can get the list of all existing service providers or search for instances directly by name or ID.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all cloud service providers added to Veeam Backup & Replication.
Get-VBRCloudProvider
Example 2
This command looks for the cloud service provider with the 104.45.95.227 IP address.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRBackupRepository
Return Type
VBRCloudTenant[]
Detailed Description
This cmdlet returns the list of cloud user accounts.
You can get the list of all existing user accounts, search for instances directly by name or ID or get loud
users accounts using a particular backup repository. Use an appropriate scenario for each case.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all cloud user accounts.
Get-VBRCloudTenant
Example 2
This command looks for the ABC company cloud user account by name.
Example 3
This command looks for the cloud user accounts using the 'Backups Vol2' backup repository.
The backup repository is obtained with Get-VBRBackupRepository and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRBackupRepository
Get-VBRWANAccelerator
Return Type
VBRCloudTenantResource
Detailed Description
This cmdlet creates a new VBRCloudTenantResource object. This object contains the cloud resources
settings and is used further to apply these settings to a cloud user account.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Quota Specifies the amount of space you True Named False False
want to allocate to the user on the
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates an object containing a 10 GB repository quota. The created object is assigned
to the '$standard1' variable.
• The backup repository from which the cloud resources will be allocated is obtained with Get-
VBRBackupRepository and assigned to the '$repo1' variable.
• The cloud repository is named 'Standard Tier Repository'.
• The user quota is set to 10 GB.
Example 2
This command creates an object containing a 100 GB repository quota. The WAN acceleration is
allowed. The created object is assigned to the '$golden2' variable.
• The backup repository from which the cloud resources will be allocated is obtained with Get-
VBRBackupRepository and assigned to the '$repo2' variable.
• The cloud repository is named 'Golden Tier Repository'.
• The user quota is set to 100 GB.
• The EnableWanAcceleration parameter is used to enable using WAN acceleration for data
transfer. The WAN accelerator that will be used is obtained with Get-VBRWANAccelerator and
assigned to the '$wan' variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudGateway
Return Type
None
Detailed Description
This cmdlet removes a selected cloud gateway from Veeam Backup & Replication console.
When you remove a cloud gateway, Veeam Backup & Replication unassigns the gateway role from the
server, so it is no longer used as a cloud gateway. The actual server remains connected to Veeam
Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes a cloud gateway represented by the '$cloudgateway' variable.
The cloud gateway is obtained with Get-VBRCloudGateway and assigned to the variable beforehand.
Example 2
This command removes a cloud gateway with the 172.16.12.45 IP address.
The cloud gateway is obtained with Get-VBRCloudGateway and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudProvider
Return Type
None
Detailed Description
This cmdlet removes service provider from Veeam Backup & Replication.
When you remove a service provider, you become unable to reach your cloud repository. The data
stored on the cloud repository remains. You can access it if you add the service provider to the Veeam
backup console again.
Important! You cannot remove a service provider if its cloud repositories are used by any backup jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes all cloud service providers added to Veeam Backup & Replication.
The service providers are obtained by Get-VBRCloudProvider and piped down.
Get-VBRCloudProvider | Remove-VBRCloudProvider
Example 2
This command removes a service provider represented by the '$CloudProvider1' variable.
The service provider is obtained by Get-VBRCloudProvider and assigned to the variable beforehand.
Example 3
This command removes the service provider with the 104.45.95.227 IP address.
The service provider is obtained by Get-VBRCloudProvider and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudTenant
Return Type
None
Detailed Description
This cmdlet removes a selected cloud user account from Veeam Backup & Replication.
The user account is removed permanently. The service provider cannot undo this operation.
When you remove a cloud user account that was using WAN accelerators, the WAN accelerators' cache
is cleared automatically.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes all cloud user profiles registered in Veeam Backup & Replication.
Get-VBRCloudTenant
Example 2
This command removes two cloud user accounts represented by the '$CloudUser1' and '$CloudUser2'
variables.
The cloud user accounts are obtained by Get-VBRCloudTenant and assigned to the variables
beforehand.
Example 3
This command removes the ABC company cloud user account.
The cloud user account is obtained by running Get-VBRCloudTenant and piped down.
Example 4
This command removes all cloud user accounts using the 'Backup Vol2' backup repository.
The backup repository is obtained by Get-VBRBackupRepository and piped down to Get-
VBRCloudTenant. The obtained cloud user account are piped down to Remove-VBRCloudTenant.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudTenant
Return Type
None
Detailed Description
This cmdlet resets cloud account user license.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command resets licenses for two cloud user accounts represented by the '$CloudUser1' and
'$CloudUser2' variables.
The cloud user accounts are obtained by Get-VBRCloudTenant and assigned to the variables
beforehand.
Example 2
This command resets the ABC company license.
The cloud user account is obtained by running Get-VBRCloudTenant and piped down.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
links to related references
Return Type
Get-VBRCloudGateway
Detailed Description
This cmdlet modifies existing cloud gateway. To modify settings, you need to enter the corresponding
parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies an external IP
address of the NAT or
Ip
network interface False Named False False
Address
gateway.
Accepts IPAddress
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command sets a new cloud gateway IP address and port to connect to Veeam Backup &
Replication.
• The cloud gateway is obtained by Get-VBRCloudGateway and piped down.
• The IP address is set to '172.16.10.20' and the port is set to '8062'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCredentials
Get-VBRCloudProvider
Return Type
VBRCloudProvider
Detailed Description
This cmdlet modifies service provider added to Veeam Backup & Replication. To modify settings, you
need to enter the corresponding parameters with new values. The parameters that you omit will
remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
thumbprint that will be
Certificate compared to the SSL False Named False False
Thumbprint certificate thumbprint.
Accepts string type.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command enables the SSL certificate verification for a service provider represented by the
'$CloudProvider1' variable.
• The service provider is obtained with Get-VBRCloudProvider and assigned to the
'$CloudProvider1' variable beforehand.
• The VerifyCertificate parameter is used to enable the SSL certificate verification with
thumbprints. The thumbprint is 'e6 c0 e5 1a db 73 0c 13 b3 c3 74 d4 ee 93 ab d0 08 3f 7a a8'.
Example 2
This command sets the cloud gateway port to the default value.
• The service provider is obtained with Get-VBRCloudProvider and piped down.
• The Port parameter is set to '6180'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Requires a cloud provider license.
Syntax
Related Commands
Get-VBRCloudTenant
New-VBRCloudTenantResource
Return Type
VBRCloudTenant
Detailed Description
This cmdlet modifies user account settings.
To modify settings, you need to enter the corresponding parameters with new values. The parameters
that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables lease expiration settings for the ABC company user account.
• The cloud user account is obtained by Get-VBRCloudTenant and piped down.
• The EnableLeaseExpiration parameter is set to false to discard the set lease period.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Set-VBRCloudTenantResource -CloudTenantResource
<VBRCloudTenantResource> [-Repository <CBackupRepository>] [-
RepositoryFriendlyName <string>] [-Quota <int>] [-
EnableWanAccelerator] [-WanAccelerator <CWanAccelerator>]
[<CommonParameters>]
Related Commands
Get-VBRBackupRepository
Get-VBRWANAccelerator
Return Type
VBRCloudTenantResource
Detailed Description
This cmdlet modifies the VBRCloudTenantResource object containing the quota settings for a selected
cloud account user. To modify settings, you need to enter the corresponding parameters with new
values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Created by
Add-VBRCloudGateway
Obtained with
Get-VBRCloudGateway
Passed to
Set-VBRCloudGateway
Remove-VBRCloudGateway
Enable-VBRCloudGateway
Disable-VBRCloudGateway
Properties
Property Type Description
Created by
Add-VBRCloudProvider
Obtained with
Get-VBRCloudProvider
Passed to
Set-VBRCloudProvider
Remove-VBRCloudProvider
Rescan-VBREntity
Properties
Property Type Description
Created by
None
Passed to
VBRCloudProvider
VBRCloudTenant
Properties
Property Type Description
Created by
Add-VBRCloudTenant
Obtained with
Get-VBRCloudTenant
Passed to
Set-VBRCloudTenant
Remove-VBRCloudTenant
Enable-VBRCloudTenant
Disable-VBRCloudTenant
Reset-VBRCloudTenant
Properties
Property Type Description
Created by
New-VBRCloudTenantResource
Passed to
Add-VBRCloudTenant
Get-VBRCloudTenant
Set-VBRCloudTenant
Properties
Property Type Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet creates a new credentials record for authenticating with the instances of your virtual
infrastructure. You can add Windows or Linux credentials records including authentication using the
Identity/Pubkey method.
You can add a new credentials record by indicating strings for user name and password (unprotected
mode), or by supplying a PSCredential object.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a new Windows credentials record for the administrator.
Example 2
This command adds a credentials record for the administrator. Get-Credential is used to enter the
username and password in the secure mode.
Example 3
This command adds a Linux credentials record for the administrator. The credentials record will use
the 23 SSH port. The root password privileges are given to the user.
Example 4
This command adds a Linux Pubkey credentials record for the 'User1'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of credentials managed by Veeam Backup & Replication.
You can get the list of all credentials or look for instances directly by name.
Return Type
CCredentials
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command gets the list of credentials records containing "Administrator" in the account name.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet permanently removes the selected credentials from the database.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the credentials you (ByValue,
Credential True Named False
want to remove. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command permanently removes the credentials record with name "Administrator". The
credentials object is obtained with Get-VBRCredentials and piped down.
Example 2
This command removes the credentials record. The credentials object is obtained with Get-
VBRCredentials and assigned to $c variable beforehand.
Remove-VBRCredentials -Credential $c
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet allows editing password or description of a selected credentials record. Select the
appropriate syntax for each case.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command sets a new description for the credentials record. The credentials record is obtained
with Get-VBRCredentials and assigned to the variable beforehand.
Encryption Cmdlets
Create and manage encryption keys.
Encryption Objects
Veeam PowerShell uses the following object to manage operations with encryption keys:
Object Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
PSCryptoKey
Detailed Description
This cmdlet creates a new encryption key.
This cmdlet accepts SecureString type. Use Microsoft PowerShell standard capabilities to convert your
password into the SecureString.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies description of
the new encryption key
Description that you can further use False 1 False False
to search encryption
keys.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Return Type
PSCryptoKey
Detailed Description
This cmdlet returns the list of encryption keys managed by Veeam Backup & Replication.
You can get the list of media pools within specified library, or search for instances directly by
description.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBREncryptionKey
Example 2
This command looks for an encryption key with description 'Veeam Administrator'.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBREncryptionKey
Return Type
None
Detailed Description
This cmdlet removes a selected encryption key.
Important! You cannot remove an encryption key if it is used by any job or set in permissions for repository for
Endpoint jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the 'Veeam Administrator' encryption key.
The encryption key is obtained by running Get-VBREncryptionKey and assigned to the
'$administratorkey' variable.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBREncryptionKey
Return Type
PSCryptoKey
Detailed Description
This cmdlet modifies encryption key that was created before. To modify settings, you need to enter
the corresponding parameters with new values. The parameters that you omit will remain unchanged.
This cmdlet accepts SecureString type. Use Microsoft PowerShell standard capabilities to convert your
password into the SecureString.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Accepts SecureString
type.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command modifies description of the 'Veeam Administrator' encryption key.
• The encryption key is obtained by running Get-VBREncryptionKey and piped down.
• The new description is set to 'Veeam Tape Backup Administrator'.
Example 2
This command sets a new password to the 'Veeam Administrator' encryption key.
• The password is turned into a SecureString by running ConvertTo-SecureString and assigned
to the '$securepassword' variable.
• The encryption key is obtained by running Get-VBREncryptionKey and piped down.
Created by
Add-VBREncryptionKey
Obtained with
Get-VBREncryptionKey
Passed to
Set-VBREncryptionKey
Remove-VBREncryptionKey
Set-VBRJobAdvancedStorageOptions
Start-VBRZip
Properties
Property Type Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet creates a new WAN accelerator.
WAN accelerator is an architecture component that optimizes file transfer via WAN by means of data
deduplication. The role of a WAN accelerator can be assigned to a dedicated Windows-based machine
(physical or virtual). For best performance you should set a WAN accelerator on both source and target
sides.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a new WAN accelerator on the Veeam backup server:
• The Veeam backup server is obtained with Get-VBRLocalhost and piped down.
• The description of the new WAN accelerator is "WAN Accelerator 01".
• The folder path where the new WAN accelerator will be created is c:\WAN.
• The cache size capacity is set to 100GB.
Example 2
This command creates a new WAN accelerator with the following parameters:
• The server where the WAN accelerator will be created is obtained with Get-VBRServer and
assigned to the $server variable beforehand.
• The description of the new WAN accelerator is "WAN Accelerator 02".
• The folder path where the new WAN accelerator will be created is c:\WAN.
• The cache size capacity is set to 150GB.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise Plus
Syntax
Related Commands
Get-VBRWANAccelerator
Detailed Description
This cmdlet clears WAN accelerator global cache.
You may need to clear the global cache in case, i.e., the data gets corrupted.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the WAN accelerator (ByValue,
Accelerator True Named False
you want to clear the cache of. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command clears cache of WAN accelerator named "WAN 01". The accelerator is obtained with
Get-VBRWANAccelerator and piped down.
Example 2
This command clears cache of the WAN accelerator represented by the $"accelerator01" variable. The
accelerator is obtained with Get-VBRWANAccelerator and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise Plus
Syntax
Detailed Description
This cmdlet gets the list of WAN accelerators managed by Veeam Backup & Replication.
WAN accelerator is an architecture component that optimizes file transfer via WAN by means of data
deduplication. The role of a WAN accelerator can be assigned to a dedicated Windows-based machine
(physical or virtual). For best performance you should set a WAN accelerator on both source and target
sides.
You can get the list of all WAN accelerators, or search for instances directly by name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all WAN accelerators.
Get-VBRWANAccelerator
Example 2
This command looks for WAN accelerators with the names starting with "WAN".
Applies to
Platform: VMware, Hyper-V
Product Edition: Enterprise Plus
Syntax
Related Commands
Get-VBRWANAccelerator
Detailed Description
This cmdlet removes the selected WAN accelerator.
When you remove a WAN accelerator, Veeam Backup & Replication unassigns the accelerator role
from the server, so it is no longer used as a WAN accelerator. The actual server remains connected to
Veeam Backup & Replication.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the WAN Accelerator named "WANAccelerator 1". The accelerator is obtained
with Get-VBRWANAccelerator and piped down.
Example 2
This command removes the WAN accelerator represented by the $a variable. The accelerator is
obtained with Get-VBRWANAccelerator and assigned to the $a variable beforehand.
Remove-VBRWANAccelerator -Accelerator $a
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Detailed Description
This cmdlet imports backups to Veeam Backup & Replication.
To import backups from another server, you must have this server added to Veeam backup console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the target server
(ByValue,
Server where you want to store the True 1 False
ByProperty
imported backups.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command imports the folder with SureBackup files to the server represented by the $server
variable. The target server is obtained with Get-VBRServer and assigned to the variable beforehand.
The file path is ESX17.Veeam.Local\C:\Backups\SureBackups.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Get-VBRRestorePoint
Detailed Description
This cmdlet copies a selected backup files to a user-specified directory.
You can copy a whole backup file or select backups for a specific job object. The job objects are VMs,
VM containers, datastores or resource pools.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command exports the backup file for a specific VM represented by the $"AD_local" to the folder
"C:\Export". The backup file to export is obtained with Get-VBRRestorePoint and assigned to the
variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of backups stored in the Veeam Backup & Replication database.
The cmdlet returns backups that were created by backup jobs, backup copy jobs, vCD jobs and
Endpoint backup jobs.
You can get the list of all backups registered in the database or look for particular backups directly by
name. By default, the backup is named by job name and contain all VMs that are processed by this job.
If the job processes several VMs, the backup contains restore points for all VMs added to the job. Run
Get-VBRRestorePoint to get a restore point for a particular VM.
Return Type
CBackup
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRBackup
Example 2
This command looks for the backups named "vCloud Webservices Backup" and "Exchange
Backup_imported".
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Detailed Description
This cmdlet removes a selected backup.
With this cmdlet, you can remove backups created by all types of jobs: backup jobs, backup copy jobs,
vCD jobs and Endpoint backup jobs.
You can remove the backup file completely from disk, or only delete the backup information from
Veeam Backup & Replication database. This cmdlet provides syntax for both scenarios accordingly.
Important! You should remove backups carefully considering the subsequent backup jobs that may fail to
produce valid backup.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the backups with names ending with "2012" from disk. The backups are
obtained with Get-VBRBackup and piped down.
Example 3
This command removes the backup represented by the $backup variable from disk. The backup is
obtained with Get-VBRBackup and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet returns the list of files in a selected restore point.
With this cmdlet, you can get files in restore points created by all types of jobs: backup jobs, backup
copy jobs, replication jobs, vCD jobs and Endpoint backup jobs (for Endpoint backups, only volume
level backups).
You can get the list of all files in a selected restore point or look for instances directly by name.
Return Type
COIBFileInfo
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the restore points for
(ByValue,
RestorePoint which you want to get the list True 1 False
ByProperty
of files.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command gets the list of files in the restore point represented by the $restorepoint variable. The
restore point is obtained with Get-VBRRestorePoint and assigned to the variable beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackup
Detailed Description
This cmdlet returns the list of restore points stored in Veeam Backup & Replication database.
With this cmdlet, you can get restore points created by all types of jobs: backup jobs, backup copy
jobs, replication jobs, vCD jobs and Endpoint backup jobs.
You can get the list of restore points of all VMs managed by Veeam Backup & Replication, or get the
restore points for a specific backup or for a specific VM.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRRestorePoint
Example 2
This command looks for the latest restore point of the VM named "MSExchange02" in the backup
named "MSExchange Backup". The backup is obtained with Get-VBRBackup and piped down. The
restore points of the VM are filtered with Sort-Object method by the "CreationTime" property to get
the most recent one.
Example 3
This command looks for the restore points of the backup represented by the variable $backup. The
backup to look the restore points in is obtained with Get-VBRBackup and assigned to the variable
beforehand.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Detailed Description
This cmdlet allows you to remove restore points from Veeam Backup & Replication.
With this cmdlet, you can remove restore points created by all types of jobs: backup jobs, backup copy
jobs, replication jobs, vCD jobs and Endpoint backup jobs.
Note that you should remove restore points carefully considering the subsequent jobs that may fail to
produce valid backup.
Important! When you remove any restore point of a replica, it will cause removing of the replica VM from
infrastructure and all its other restore points.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the increment restore points from all backups with names containing
"Fileserver". The restore points are obtained with Get-VBRRestorePoint and piped down.
Example 2
This command removes the restore point represented by the $restorepoint variable. The restore point
object is obtained with Get-VBRRestorePoint and assigned to the variable beforehand.
Sessions Cmdlets
Get specific job sessions and look which tasks it contains.
Sessions Objects
Veeam PowerShell uses the following object to manage jobs sessions:
Object Description
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet returns the list of backup, replication and backup copy sessions that have been run.
You can get the list of all backup, replication and backup copy sessions, or look for instances directly
by name.
Run Get-VBRTaskSession to get the list of all tasks performed during the specific backup, replication or
backup copy session.
Run Get-VSBSession to get the list of SureBackup sessions that have been run.
Return Type
CBackupSession
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBRBackupSession
Example 2
This command looks for all backup copy sessions.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRJob
Return Type
VBRBackupSession
Detailed Description
This cmdlet returns the list of sessions for a selected tape job.
You can get all tape job sessions that have been run, update the job session state or filter the sessions
by session state or result. Use an appropriate scenario for each case.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRBackupSession
Detailed Description
This cmdlet returns the list of tasks performed during the specified session. You can get the tasks for
backup, replication and backup copy sessions.
Run Get-VSBTaskSession to get the tasks for SureBackup session.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the session the tasks of (ByValue,
Session True 1 False
which you want to get. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command gets the list of tasks performed for the VMs named "DC" and "DNS" in the backup job
session represented by the $"Exchange Session" variable. The backup session is obtained with Get-
VBRBackupSession and assigned to the variable beforehand.
Created by
Start-VBRFailoverPlan
Undo-VBRFailoverPlan
Get-VBRSession
Start-VBRTapeCatalog
Start-VBRTapeInventory
Erase-VBRTapeMedium
Export-VBRTapeMedium
Import-VBRTapeMedium
Properties
The "?" mark indicates that the type property accepts zero values.
Created by
None
Properties
The "?" mark indicates that the type property accepts zero values.
Created by
Get-VBRSession
Passed to
None
Properties
Property Type Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRServer
Get-VBRJob
Get-VSBJob
Find-VBRViEntity / Find-VBRHvEntity
Get-VBRBackup
Detailed Description
This cmdlet collects system logs. You can use this cmdlet to collect logs you can send to the Veeam
support.
The log files are written to the folder you specify in this cmdlet.
This cmdlet provides syntax for getting logs for hosts, jobs, entities or backups. You can get logs for all
kind of virtual host, any jobs including SureBackup jobs, all entities including datastores, clusters,
replicas, etc., or any backup.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command starts collecting log files for the SureBackup job named "DC SureJob". The job is
obtained with Get-VSBJob and piped down. The destination path is C:\Logs\SureBackup Logs. The
period for collecting data is not set to collect all the data for the job. The data compression is enabled.
Example 3
This command starts collecting log files for the VM named "DC" for May, 2013. The VM is obtained with
Find-VBRViEntity and piped down. The destination path is C:\Logs. The data compression is enabled.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Detailed Description
This cmdlet backs up current configuration of Veeam Backup & Replication server.
With configuration backup, you can store a copy of your host configuration: your virtual infrastructure,
jobs configuration, Veeam Backup & Replication settings and other data. In case the Veeam Backup &
Replication host is failed or configuration is corrupted, you can restore configuration with this copy.
The configuration backup is job-driven. You can configure settings of the configuration backup job,
including schedule, in the main menu of the Veeam backup console. With Veeam PowerShell, you can
start a job session but you cannot change the settings.
By default, the configuration backup job runs daily. The resulting backup files are stored to the
C:\backup\VeeamConfigBackup\%BackupServer% folder on the Veeam backup default repository.
You cannot restore configuration with Veeam PowerShell. It is recommended to perform the restore
operation with Veeam Backup & Replication UI for full functionality.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command backs up current configuration of Veeam Backup & Replication host.
Export-VBRConfiguration
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds the selected NetApp storage to Veeam Backup & Replication.
When you add a storage to your management console, Veeam Backup & Replication scans the storage
to update the infrastructure. To rescan the storage items manually, run Sync-NetAppHost or Sync-
NetAppVolume.
To remove a storage from Veeam Backup & Replication console, run Remove-NetAppHost. The storage
is not deleted from server where it was created. When you remove a storage, you stop managing it via
your Veeam Backup & Replication console.
When adding a storage, you will need to provide either username/password or credentials. This
cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
UserName Specifies the user name you want True Named False False
to use for authenticating with the
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a NetApp storage with IP address 167.16.2.134 specified in -Name parameter. The
username is "Administrator" and the password is "_Password_".
Example 2
This command adds a NetApp storage with IP address 167.16.2.134 specified in -Name parameter. The
credentials object is obtained with Get-VBRCredentials and assigned to the $creds variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppVolume
Detailed Description
This cmdlet creates a snapshot of the selected NetApp volume.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
True (by Value
CSanVolume object
FromPipeline,
Volume containing the SAN True Named False
ValueFromPipeline
volume you want to
ByPropertyName)
take snapshot of.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command creates a snapshot of the "Vol 01" volume. The snapshot is named "vol_SS_01".
The target volume object is obtained with Get-NetAppVolume and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
None
Detailed Description
This cmdlet returns the list of storages.
You can get the list of all storages added to your virtual infrastructure or narrow down the output by
storage name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for all available storages.
Get-NetAppHost
Example 2
This command looks for the list of storages with names starting with "NetApp Store".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppVolume
Detailed Description
This cmdlet returns the list of storage snapshots.
You can get the list of all storage snapshots of your virtual infrastructure or narrow down the output
by snapshot name or a specific volume.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-NetAppSnapshot
Example 2
This command looks for snapshots of the specific volumes. The list of volumes is obtained with Get-
NetAppVolume, the first three volumes are selected and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppHost
Detailed Description
This cmdlet returns the list of storage volumes.
You can get the list of all storage volumes of your virtual infrastructure or narrow down the output by
volume name, or specify a cluster or a storage within which you want to look for the volumes.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command looks for the volume named "NetApp Store" in storage "NetApp Store 01".
The storage object is obtained with Get-NetAppHost and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppHost
Detailed Description
This cmdlet removes the selected storage from Veeam Backup & Replication.
The storage is not deleted from server where it was created. When you remove a storage, you stop
managing it via your Veeam Backup & Replication console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command removes the storage named "NetApp Store 01".
The storage object is obtained with Get-NetAppHost and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppSnapshot
Detailed Description
This cmdlet permanently removes the selected storage snapshot from your virtual infrastructure.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
CSanSnapshot object
containing the True (by Value
snapshot(s) you want FromPipeline,
Snapshot to remove. True Named False
ValueFromPipeline
You can add multiple ByPropertyName)
snapshots to this
object.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command removes the snapshot with name "vol1_SS_1".
The snapshot object is obtained with Get-NetAppSnapshot and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppHost
Get-VBRCredentials
Detailed Description
This cmdlet modifies a selected storage. To modify settings, you need to enter the corresponding
parameters with new values. The parameters that you omit will remain unchanged.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
CCredentials object
containing the
credentials record you
want to use for
Credentials authenticating with the True Named False False
storage.
If you use credentials
scenario, User and
Password parameters
must be omitted.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command changes the storage connection from default to HTTP. The storage is obtained with
Get-NetAppHost and assigned to the '$netapp' variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppHost
Detailed Description
This cmdlet rescans the selected storage to synchronize the infrastructure with Veeam Backup &
Replication.
Rescanning discovers new or checks for deleted volumes and snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted volumes or snapshots.
To rescan the selected volumes only, run Sync-NetAppVolume.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command synchronizes the storage named "NetApp Store 01".
The storage object is obtained with Get-NetAppHost and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-NetAppVolume
Detailed Description
This cmdlet rescans the selected storage volume(s) to synchronize the infrastructure with Veeam
Backup & Replication.
Rescanning discovers new or checks for deleted snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted snapshots.
To rescan the storage, run Sync-NetAppHost.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
CSanVolume object
containing the True (by Value
volume(s) you want to FromPipeline,
Volume True Named False
synchronize. ValueFromPipeline
ByPropertyName)
You can add multiple
volumes to this object.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example
This command synchronizes the volume named "NetApp Vol 01".
The storage object is obtained with Get-NetAppVolume and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Volume
Detailed Description
This cmdlet creates a snapshot of the selected HP 3PAR StoreServ storage volume.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
description of the
snapshot.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command creates a snapshot of the "Vol 01" volume. The snapshot is named "vol_SS_01". The
target volume object is obtained with Get-HP3Volume and assigned to the $volume variable
beforehand. The description is "Vol 01 snapshot".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds the selected HP 3PAR StoreServ storage to Veeam Backup & Replication.
When you add a storage to your management console, Veeam Backup & Replication automatically
rescans the storage infrastructure. To rescan the storage infrastructure manually, run Sync-HP3Storage
or Sync-HP3Volume.
When adding a storage, you will need to provide either username/password or credentials. This
cmdlet provides syntax for both scenarios accordingly.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a HP 3PAR StoreServ storage with IP address 167.16.2.134 specified in the -Name
parameter. The username is "Administrator" and the password is "Password". The URL is
https://172.18.44.8:8080.
Example 2
This command adds a HP 3PAR StoreServ storage with IP address 167.16.2.134 specified in -Name
parameter. The credentials object is obtained with Get-VBRCredentials and assigned to the $creds
variable beforehand. The URL is https://172.18.44.8:8080.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Volume
Detailed Description
This cmdlet returns the list of HP 3PAR StoreServ storage snapshots.
You can get the list of all storage snapshots in your storage system or narrow down the output by the
snapshot name or a specific volume.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-HP3Snapshot
Example 2
This command looks for snapshots of the specific volumes. The list of volumes is obtained with Get-
HP3Volume, the first three volumes are selected and piped down.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Detailed Description
This cmdlet returns the list of HP 3PAR StoreServ storages.
You can get the list of all HP 3PAR StoreServ storages in your storage system or narrow down the
output by the storage name.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all HP 3PAR StoreServ storages.
Get-HP3Storage
Example 2
This command looks for the list of storages with names starting with "HP Store".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Storage
Detailed Description
This cmdlet returns the list of HP 3PAR StoreServ storage volumes.
You can get the list of all HP 3PAR StoreServ storage volumes in your storage system, narrow down
the output by the volume name or specify a cluster or a storage within which you want to look for the
volumes.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the volume named "HP Store" in the storage represented by the $"HP
storage" variable. The storage object is obtained with Get-HP3Storage and assigned to the variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Snapshot
Detailed Description
This cmdlet permanently removes the selected HP 3PAR StoreServ storage snapshot from your
storage system.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command removes the snapshot named "vol1_SS_1". The snapshot object is obtained with Get-
HP3Snapshot and piped down.
Example 2
This command removes the snapshot represented by the $"snapshot1" variable. The snapshot object
is obtained with Get-HP3Snapshot and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Storage
Detailed Description
This cmdlet removes the selected HP 3PAR StoreServ storage from Veeam Backup & Replication.
The HP 3PAR StoreServ storage is not deleted from server. When you remove a HP 3PAR StoreServ
storage, you stop managing it via your Veeam Backup & Replication console.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the storage you want (ByValue,
Storage True Named False
to remove. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the storage represented by the $"store01" variable. The storage object is
obtained with Get-HP3Storage and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Storage
Detailed Description
This cmdlet rescans the selected HP 3PAR StoreServ storage to synchronize its infrastructure with
Veeam Backup & Replication.
Rescanning discovers new or checks for deleted volumes and snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted volumes or snapshots.
Run Sync-HP3Volume to rescan the selected volumes only.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the storage you want (ByValue,
Storage False Named False
to rescan. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command synchronizes the storage represented by the $"store01" variable. The storage object is
obtained with Get-HP3Storage and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP SAN storage system: HP 3PAR StoreServ
Syntax
Related Commands
Get-HP3Volume
Detailed Description
This cmdlet rescans the selected HP 3PAR StoreServ storage volume(s) to synchronize the storage
system infrastructure with Veeam Backup & Replication.
Rescanning discovers new or checks for deleted snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted snapshots.
Run Sync-HP3Storage to rescan the HP 3PAR StoreServ storage.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command synchronizes the volume named "HP Vol 01". The volume object is obtained with Get-
HP3Volume and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Volume
Detailed Description
This cmdlet creates a snapshot of the selected HP StoreVirtual storage volume.
Alias
Add-VBRHPSnapshot
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a snapshot of the "Vol 01" volume. The snapshot is named "vol_SS_01". The
target volume object is obtained with Get-HP4Volume and piped down. The application-managed
snapshot is enabled. The description is "Vol 01 snapshot".
Example 2
This command creates a snapshot of the "Vol 01" volume. The snapshot is named "vol_SS_01". The
target volume object is obtained with Get-HP4Volume and assigned to the $volume variable
beforehand. The application-managed snapshot is enabled. The description is "Vol 01 snapshot".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-VBRCredentials
Detailed Description
This cmdlet adds the selected HP StoreVirtual storage to Veeam Backup & Replication.
When you add a storage to your management console, Veeam Backup & Replication automatically
rescans the storage infrastructure. To rescan the storage infrastructure manually, run Sync-HP4Storage
or Sync-HP4Volume.
When adding a storage, you will need to provide either username/password or credentials. This
cmdlet provides syntax for both scenarios accordingly.
Alias
Add-VBRHPStorage
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the string with a full
DnsOr (ByValue,
DNS name or IP address of the True Named False
IpAddress ByProperty
storage.
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command adds a storage with IP address 167.16.2.134. The username is "Administrator" and the
password is "Password".
Example 2
This command adds a storage with IP address 167.16.2.134. The credentials object is obtained with
Get-VBRCredentials and assigned to the $creds variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Storage
Detailed Description
This cmdlet returns the list of HP StoreVirtual storage clusters.
You can get the list of all storage clusters in your storage system, or narrow down the output by the
cluster name or a specific storage.
Alias
Get-VBRHPCluster
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the list of clusters in the storage named "HP Store 01". The storage object is
obtained with Get-HP4Storage and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Volume
Detailed Description
This cmdlet returns the list of HP StoreVirtual storage snapshots.
You can get the list of all storage snapshots in your storage system, or narrow down the output by the
snapshot name or a specific volume.
Alias
Get-VBRHPSnapshot
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the snapshots of the volume represented by the $vol variable. The volume is
obtained with Get-HP4Volume and assigned to the variable beforehand.
Get-HP4Snapshot
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Detailed Description
This cmdlet returns the list of HP StoreVirtual storages.
You can get the list of all storage snapshots in your storage system, or narrow down the output by the
storage name.
Alias
Get-VBRHPStorage
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of all storages.
Get-HP4Storage
Example 2
This command looks for the list of storages with names starting with "HP Store".
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Storage
Get-HP4Cluster
Detailed Description
This cmdlet returns the list of HP StoreVirtual storage volumes.
You can get the list of all storage volumes in your storage system,narrow down the output by the
volume name, or specify a cluster or a storage within which you want to look for the volumes.
Alias
Get-VBRHPVolume
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Storage Specifies the storage within which False Named False False
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command looks for the list of volumes with names starting with "HP Store" within the cluster
named "Cluster 1". The cluster object is obtained with Get-HP4Cluster and piped down.
Example 2
This command looks for all volumes in the storage named "HP Store 01". The storage object is
obtained with Get-HP4Storage and piped down.
Example 3
This command looks for volume named "HP Vol01" in the storage represented by the $storage
variable. The storage object is obtained with Get-HP4Storage and assigned to the variable
beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Snapshot
Detailed Description
This cmdlet permanently removes the selected HP StoreVirtual storage snapshot from your storage
system.
Alias
Remove-VBRHPSnapshot
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the snapshot represented by the $"snapshot1" variable. The snapshot object
is obtained with Get-HP4Snapshot and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP LeftHand P4000, HP StoreVirtual VSA
Syntax
Related Commands
Get-HP4Storage
Detailed Description
This cmdlet removes the selected storage from Veeam Backup & Replication.
The storage is not deleted from server. When you remove a storage, you stop managing it via your
Veeam Backup & Replication console.
Alias
Remove-VBRHPStorage
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the storage you want (ByValue,
Storage True Named False
to remove. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command removes the storage represented by the $"store01" variable. The storage object is
obtained with Get-HP4Storage and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Storage
Detailed Description
This cmdlet rescans the selected HP StoreVirtual storage to synchronize its infrastructure with Veeam
Backup & Replication.
Rescanning discovers new or checks for deleted volumes and snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted volumes or snapshots.
Run Sync-HP4Volume to rescan the selected volumes only.
Alias
Sync-VBRHPStorage
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
True
Specifies the storage you want (ByValue,
Storage True Named False
to synchronize. ByProperty
Name)
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command synchronizes the storage named "HP Store 01". The storage object is obtained with
Get-HP4Storage and assigned to the variable beforehand.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
HP storage systems: HP StoreVirtual
Syntax
Related Commands
Get-HP4Volume
Detailed Description
This cmdlet rescans the selected HP StoreVirtual storage volume(s) to synchronize the storage system
infrastructure with Veeam Backup & Replication.
Rescanning discovers new or checks for deleted snapshots.
Veeam Backup & Replication runs rescan automatically every 3 minutes. You can perform rescan
manually if you want to display the newly added or deleted snapshots.
Run Sync-HP4Storage to rescan the storage.
Alias
Sync-VBRHPVolume
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command synchronizes the volume named "HP Vol 01". The storage object is obtained with Get-
HP4Volume and piped down.
Object Description
Syntax
This cmdlet provides two parameter sets.
For direct data transfer:
Related Commands
Get-VBRBackup
Get-VBRBackupRepository
Get-VBRWANAccelerator
Detailed Description
This cmdlet creates a backup copy job for Endpoint backups.
The backup copy job is copying Endpoint backup files from the source backup repository to the target
backup repository. The backup copy job runs continuously synchronizing the backup repositories in
user-defined time periods.
The cmdlet provides two parameters sets that can be used for on-site and off-site modes:
• Direct data transfer
You can create a backup copy job using direct operation. With this method, the job sends the
data directly to the target backup repository without performing data deduplication. This
mode is recommended for on-site backups, or off-site backups using fast connections.
• Data transfer with WAN accelerators
To transfer the data efficiently to to the off-site location, you can use the WAN accelerator
technology. WAN accelerator is a backup infrastructure component that optimizes file
transfer via WAN by means of data deduplication. The role of a WAN accelerator can be
assigned to a dedicated Windows-based machine (physical or virtual). You should always use
a pair of WAN accelerators set on source and target sides. This mode is recommended for off-
site backups. To create and run a backup copy job using WAN accelerators you need to have
source and target WAN accelerators created.
Run Add-VBRWANAccelerator to create a WAN accelerator. WAN optimization is available
only in Veeam Backup & Replication Enterprise Plus Edition.
Note that the backup copy job is created in disabled state. Run Enable-VBRJob to start the job running
on the defined schedule.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command creates a backup copy job using the direct operation method.
• The Endpoint backup is obtained with Get-VBRBackup and assigned to the '$EPbackup'
variable.
• The target backup repository is obtained with Get-VBRBackupRepository and assigned to the
'$repository' variable.
Syntax
Related Commands
None
Return Type
VBREPJob[]
Detailed Description
This cmdlet disables a Veeam Endpoint backup job.
When you disable a job, you temporarily put it on hold. The job and its settings are not deleted from
Veeam Backup & Replication. You can enable the job at any time by running Enable-VBREPJob.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command disables an Endpoint job named 'Backup Job Mediaserver'. The job is obtained with
Get-VBREPJob and piped down.
Syntax
Related Commands
None
Return Type
VBREPJob[]
Detailed Description
This cmdlet enables a Veeam Endpoint backup job that was previously disabled.
When you disable a job, you put it on hold until you enable it with this cmdlet. You can disable a job
by running Disable-VBRJob.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables an Endpoint job named 'Backup Job Mediaserver'. The job is obtained with
Get-VBREPJob and piped down.
Syntax
Get-VBREPJob [<CommonParameters>]
-OR-
Get-VBREPJob [-Name <string[]>] [<CommonParameters>]
-OR-
Get-VBREPJob [-Id <guid[]>] [<CommonParameters>]
Related Commands
None
Return Type
VBREPJob[]
Detailed Description
This cmdlet returns the list of Veeam Endpoint backup jobs stored in Veeam Backup & Replication
database.
You can get the list of all Endpoint backup jobs or search for instances directly by name or ID. Use an
appropriate parameter set for each case.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Get-VBREPJob
Example 2
This command gets an Endpoint backup job named 'Backup Job Mediaserver'.
Syntax
Related Commands
Get-VBRBackupRepository
Return Type
VBREPPermission
Detailed Description
This cmdlet returns the user access permissions for a backup repository that is used as a target by
Endpoint backup jobs.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command looks for the 'WinLocal' repository permissions. The repository is obtained with Get-
VBRBackupRepository and piped down.
Syntax
Get-VBREPSession [<CommonParameters>]
-OR-
Get-VBREPSession [-Name <string[]>] [<CommonParameters>]
Related Commands
None
Return Type
VBRSession[]
Detailed Description
This cmdlet returns the list of Veeam Endpoint backup job sessions that have been run.
You can get the list of all Endpoint backup job sessions or search for instances directly by name. Use
an appropriate parameter set for each case.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command gets the list of all Endpoint backup jobs sessions.
Get-VBREPSession
Example 2
This command gets the list of sessions of an Endpoint backup job named 'Backup Job Mediaserver'
Syntax
Related Commands
Get-VBRBackupRepository
Get-VBREncryptionKey
Return Type
VBREPPermission
Detailed Description
This cmdlet applies user access permissions to a selected repository for writing Endpoint backup jobs
data.
By default, the backup repositories are configured to have no permissions for writing Endpoint
backups. To start using a Veeam backup repository as target for Endpoint backups, you need to
change the access permissions to Everyone or OnlySelectedUsers. The OnlySelectedUsers option
allows you to submit usernames or names of Active Directory groups.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command enables encryption for WinLocal repository.
• The encryption key is obtained with Get-VBREncryptionKey and assigned to an
'$encryptionkey' variable.
• The repository is obtained by Get-VBRBackupRepository and piped down.
• The EnableEncryption switch and the EncryptionKey parameter are used to enable
encryption.
• The PassThru parameter is set to view the command output.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Related Commands
Get-VBRRestorePoint
Get-VBRServer
Get-VBRFilesInRestorePoint
Detailed Description
This cmdlet allows you to restore physical disks from Endpoint volume level backups and convert
them to VMDK, VHDX or VHD format. The data from the backups is restored as a folder to a selected
path.
You can restore disks to any Windows host added to Veeam Backup & Replication.
If the Endpoint backup contains several disks, you can restore specific disks from backup. Use the Files
parameter to select the disks to restore.
For virtual disks restore, run Start-VBRRestoreVMFiles.
Parameters
Accept Accept
Parameter Description Required Position Pipeline Wildcard
Input Characters
Specifies the
Windows host to
Server True 2 False False
which the disks
should be restored.
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about
common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 2
This command restores selected disks from an SRV03 computer to a Windows server added to Veeam
Backup & Replication. The disks are restored to the latest restore point. The resulting format is VHDX.
• The restore point is obtained with Get-VBRRestorePoint. First, all Hyper-V backups are
selected by filtering all backups with ".BackupPlatform" property. Then, the available restore
points are filtered by the 'SRV03' name by '.Type' property. Then the restore points are sorted
with Sort-Object method by the "CreationTime" property to get the most recent one.
• The target server is obtained with Get-VBRServer and assigned to the '$server' variable.
• The path to the folder where files will be saved is ''C:\SRV03_Restored'.
• The RestoreDiskType is set to 'Vhdx'.
• The disks in the backup are obtained with Get-VBRFilesInRestorePoint and assigned to the
'$disks' variable. The needed disks 1 and 3 will be restored.
• The RunAsync parameter is set to bring the process to the background.
Created by
None
Obtained with
Get-VBREPJob
Passed to
Enable-VBREPJob
Disable-VBREPJob
Remove-VBRJob
Properties
The "?" mark indicates that the type property accepts zero values.
Created by
None
Obtained with
Get-VBREPPermission
Passed to
None
Properties
Property Type Description
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
Syntax
Get-VBRToolkitDocumentation
Detailed Description
This cmdlet opens online Veeam PowerShell Reference on Veeam Help Center in your default browser.