veeam
This is an old revision of the document!
Add Snapin to Powershell
PS I:\powershell> Add-PSSnapin VeeamPSSnapin
Backup Server: PS I:\powershell> Enable-PSRemoting
https://helpcenter.veeam.com/backup/powershell/powershell_remoting.html
Create a Profile
PS C:\> new-item $profile -type file -force
Verzeichnis: \\itshessen.hessen.de\hzd\home\Duerschlag\WindowsPowerShell
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 16.03.2016 09:56 0 Microsoft.PowerShell_profile.ps1
Modify $PROFILE
notepad $PROFILE Add-PSSnapin VeeamPSSnapin
Powershell Commands
Connect-VBRserver -User itshessen\username -Server servername -Port 9392
foreach($job in Get-VBRJob) { Write-Host "Job:", $job.Name; $job.GetObjectsInJob() | foreach { $_.Location } }
Get-VBRJob | ? {$_.GetLastResult() -eq "Failed"}
Get-VBRJob | ? {$_.GetLastResult() -eq "Failed"} | Get-VBRJobObject
Suche eine VM und packe Sie mit einen Backup Job:
PS C:\Users\opriwBKP> Find-VBRViEntity -Name $vmname
veeam.1485341494.txt.gz · Last modified: 2021/04/24 07:38 (external edit)
