• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 38
  • Last Modified:

Trying to use powershell with veeam free and it's not working

Trying to setup veeam free to schedule backups from a hyperv server.
If I run it manually from veeam UI it works fine.

I'm using this script:

Add-PSSnapin VeeamPSSnapin
$vms = "adminws"
$netcreds = Get-VBRCredentials -Name "bknas\vmbackups"
foreach($vmname in $vms){
	$vm = Find-VBRHvEntity -Name $vmname
	Start-VBRZip -Folder "Y:\vms" -Entity $vm -Compression 5 -DisableQuiesce -NetworkCredentials $netcreds
}

Open in new window


It looks like it's trying to backup, however, it never writes a file, and it returns this:

EventNotifier                : Veeam.Backup.Core.CEventNotifier
BottleneckManager            : CJobBottleneckManager
Info                         : Veeam.Backup.Model.CBackupSessionInfo
Progress                     : Veeam.Backup.Model.CBackupProgressData
StartupMode                  : Normal
JobSourceType                : HyperV
CurrentPointId               : 00000000-0000-0000-0000-000000000000
OriginalSessionId            : 73e8e2fd-7784-4df8-adc5-ed13ca85782d
IsFullMode                   : True
IsRetryMode                  : False
IsRecheckRetry               : False
IsQuickBackup                : False
IsVeeamZip                   : True
IsPlannedFailover            : False
IsReplicaFromBackup          : False
IsAdHocBackup                : False
PostActivity                 : AskService
Name                         : adminws_2018-02-21T223729 (Active Full)
OrigJobName                  : adminws_2018-02-21T223729
BackupStats                  : Veeam.Backup.Model.CBackupStats
WorkDetails                  : Veeam.Backup.Core.CBackupSessionWorkDetails
WillBeRetried                : False
IsManuallyStopped            : False
IsTransformLaunched          : False
LastProgressSaveTime         : 1/01/0001 12:00:00 AM
SessionCryptoSpec            : Veeam.Backup.Crypto.CCryptoSymmetricSpec
UserKey                      : 
MasterKey                    : 
UserCryptoSpec               : 
SelectiveProcessingSpec      : 
BackupVerificationResult     : 
IsEncryptionEnabledByOptions : False
IsEncryptionEnabled          : False
SplitStoragesPerVm           : 
DataBag                      : {}
SessionInfo                  : Veeam.Backup.Model.CBackupSessionInfo
Id                           : 73e8e2fd-7784-4df8-adc5-ed13ca85782d
LeaseId                      : 00000000-0000-0000-0000-000000000000
JobType                      : Backup
JobName                      : adminws_2018-02-21T223729
JobSpec                      : <FreeBackupSpec><JobId>211225f1-a77a-4f67-b906-51df9d6bd4f1</JobId><JobName>adminws_2018-02-21T223729</JobName><VmName>adminws</VmName><Platform>EHyperV</Platform><BackupObjects><ObjectId>3a56eff7-9728-4c9e-b2ab-a7f68df95a1d</ObjectId></BackupObjects><UseRepository>False</UseRepos
                               itory><RepositoryId>00000000-0000-0000-0000-000000000000</RepositoryId><FolderName>Y:\vms</FolderName><CredsId>5746e0af-fdad-4999-be92-0b5d97fa62f2</CredsId><CompressionLevel>5</CompressionLevel><VmToolsQuiesce>False</VmToolsQuiesce><PwdKeyId>00000000-0000-0000-0000-000000000000</
                               PwdKeyId><ModifiedBy>RCSA-INT\techsupport</ModifiedBy></FreeBackupSpec>
JobTypeString                : Backup
CreationTimeUTC              : 21/02/2018 10:37:29 PM
Operation                    : 
Description                  : 
BaseProgress                 : 100
IsCompleted                  : True
IsWorking                    : False
IsStarting                   : False
IsPostprocessing             : False
JobId                        : 211225f1-a77a-4f67-b906-51df9d6bd4f1
Result                       : Failed
State                        : Stopped
EndTime                      : 21/02/2018 10:37:56 PM
EndTimeUTC                   : 21/02/2018 10:37:56 PM
CreationTime                 : 21/02/2018 10:37:29 PM
AuxData                      : <AuxData><CBackupSessionWorkDetails><WorkDuration>268086708</WorkDuration></CBackupSessionWorkDetails><SessionStarterInfo Version="1" UserName="techsupport" UserDomainName="RCSA-INT" RunManually="True" LoginType="0" /></AuxData>
IsLowerAgentPriority         : True
LogName                      : Job.adminws_2018-02-21T223729
LogsSubFolder                : adminws_2018-02-21T223729
Logger                       : Veeam.Backup.Core.XmlLogger
Tracer                       : Veeam.Backup.Core.CSessionLogTracer

Open in new window

0
DFPITC
Asked:
DFPITC
  • 4
  • 3
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Possibilities the limitations for Veeam free!
0
 
DFPITCAuthor Commented:
No, this is certainly possible with veeam free edition.

I have had this working before, i'm just not sure what's wrong.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You are using Update 2, which this has been changed in...

see here

https://www.veeam.com/blog/veeam-backup-free-edition-now-with-powershell.html
0
 
DFPITCAuthor Commented:
I don't understand what you're saying?

I downloaded the latest version, so it has powershell support.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
So you have downloaded v2 as per link which confirms this version has Powershell support!

and if you use the script in the link does it work for you!

(Hyper-V script at the bottom of page!)
0
 
DFPITCAuthor Commented:
These answers are terrible, just forget it, i'll figure it out another way.
0
 
DFPITCAuthor Commented:
I'm getting no-where with this line of questioning
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now