Start-VBRJob : Exception has been thrown by the target

PowerShell script exchange

Start-VBRJob : Exception has been thrown by the target

Veeam Logoby wdbarker3 » Thu Feb 03, 2011 3:10 pm

If you write a Veeam Powershell script, many things will work. However, trying to start a job shows the following exception: "Start-VBRJob : Exception has been thrown by the target of an invocation".

Technical support just wasted 2 days on this, and left me with an "I'll get back to you later" for an answer. However, there is a Tools | Powershell menu item in v5 that opens a shell that will actually do a Start-VRBJob. The UAC prompt was the hint that I needed to run my powershell scripts as Administrator.

You'd think that hint would make it into the doc, but I certainly didn't find it. The exception message is certainly no help.

Hopefully the next user to bump into this will see the exception posted here and not waste so much time. I was seeing the failure on both Windows 7-64 and 2008r2.

REF: 553658

start-vbrjob $job
Start-VBRJob : Exception has been thrown by the target of an invocation.
At line:1 char:13
+ start-vbrjob <<<< $job
+ CategoryInfo : InvalidOperation:
(Veeam.Backup.Po...and.StartVBRJob:StartVBRJob) [Start-VBRJob], Target
InvocationException
+ FullyQualifiedErrorId :
Backup,Veeam.Backup.PowerShell.Command.StartVBRJob
wdbarker3
Novice
 
Posts: 8
Liked: never
Joined: Fri Jan 28, 2011 11:48 pm
Full Name: Dan Barker

Re: Start-VBRJob : Exception has been thrown by the target

Veeam Logoby Gostev » Thu Feb 03, 2011 3:24 pm

Thank you!
Gostev
Veeam Software
 
Posts: 21396
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests