PowerShell: Running Veeam backups.

The PowerShell script below allows you to run a Veeam backup.

This type of script can be used with a schedule task to initiate a backup.

# Load cmdlet Veeam
Add-PSSnapin VeeamPSSnapin
# Disconnect old session
Disconnect-VBRServer
# Connect Veeam Server
Connect-VBRServer -User "DOMAIN\administrator" -Password "password"
# Get job by Name
$bkjob = Get-VBRJob -Name "name of job"
# Start job
Start-VBRJob -Job $bkjob
# Disconnect session
Disconnect-VBRServer

Romain Drouche
System Architect | MCSE: Core Infrastructure
IT infrastructure expert with over 15 years of field experience. Currently a Systems and Networks Project Manager and Information Systems Security (ISS) expert, I use my expertise to ensure the reliability and security of technological environments.

Leave a Comment