Start-VBRZip in Veeam Backup Free Edition

PowerShell script exchange

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby snewton51 » Mon Jul 20, 2015 3:48 pm

Hello,

Can anyone shed some light on why I get this error?

Start-VBRZip : A parameter cannot be found that matches parameter name 'AutoDelete'.
At C:\PowerShell Scripts\VeeamZIPaldc1.ps1:86 char:132
+ ... leQuiescence) -AutoDelete $Retention
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-VBRZip], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Veeam.Backup.PowerShell.Commands.Backup.StartVBRZip

You cannot call a method on a null-valued expression.
At C:\PowerShell Scripts\VeeamZIPaldc1.ps1:91 char:5
+ $TaskSessions = $ZIPSession.GetTaskSessions().logger.getlog().updatedrecords
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

If I take out "autodelete" it works.
snewton51
Lurker
 
Posts: 2
Liked: never
Joined: Mon Jul 20, 2015 3:39 pm
Full Name: Steve Newton

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Tue Jul 21, 2015 9:06 am

What product and PowerShell version are you using?
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby snewton51 » Tue Jul 21, 2015 7:34 pm

Thanks but I upgraded veeam and powershell and it seems to be working.
snewton51
Lurker
 
Posts: 2
Liked: never
Joined: Mon Jul 20, 2015 3:39 pm
Full Name: Steve Newton

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Wed Jul 22, 2015 5:28 am

Hi, Steve,

That's the main reason why the referenced script doesn't seem to work - either PS or backup server version is a bit out-dated one.

Anyway, glad to hear that now everything is up and running.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby brujah » Tue Aug 18, 2015 6:15 pm

Will this work with PowerShell version 4? That's the only thing that's different. I've applied Update 2. This is the first error being reported

Code: Select all
Asnp : No snap-ins have been registered for Windows PowerShell version 4.
At C:\VeeamSentry.ps1:69 char:1
+ Asnp VeeamPSSnapin


Thanks

Erin
brujah
Novice
 
Posts: 3
Liked: never
Joined: Tue Aug 18, 2015 1:45 pm
Full Name: Erin Steadman

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Wed Aug 19, 2015 10:36 am

Will this work with PowerShell version 4?

It should. The most frequent solution that I've seen so far for similar issue is to re-install Update 2b along with PS snap-in. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby brujah » Wed Aug 19, 2015 3:21 pm

I'll try reinstalling the update. Just waiting for a backup to finish :) PS Snap-in is included in Update 2b, right?

Support ID 00999684 it's an old one, but it won't let me post without an ID. Stupid

Thanks
brujah
Novice
 
Posts: 3
Liked: never
Joined: Tue Aug 18, 2015 1:45 pm
Full Name: Erin Steadman

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Thu Aug 20, 2015 7:16 am

Correct.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby brujah » Fri Aug 21, 2015 6:02 pm

Still no luck. Same error. Any other ideas?
Support ID 00999684
brujah
Novice
 
Posts: 3
Liked: never
Joined: Tue Aug 18, 2015 1:45 pm
Full Name: Erin Steadman

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Fri Aug 21, 2015 6:06 pm

Let's wait till support team analyze the corresponding logs, then. They'll be able to find out the root cause of the experienced behaviour. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby Foo68 » Tue Aug 25, 2015 11:52 am

Please forgive my excessive noob-ness. I had this running a treat for a while, customer was loving it, I was loving it. It appears that the trial license that it made me install has expired and I am unable to get a backup running again.

Error message is:

Code: Select all
PS C:\Dynamic_Scripts> .\Veeam-SAS-DC.ps1
Start-VBRZip : Your trial license has expired.
To continue using the product, please purchase a full license.
To purchase a full license, please submit a request at http://www.veeam.com/sales
A sales representative will contact you shortly after your request has been received.
At C:\Dynamic_Scripts\Veeam-SAS-DC.ps1:86 char:19
+     $ZIPSession = Start-VBRZip -Entity $VM -Folder $Directory -Compression $Comp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-VBRZip], CLicenseException
    + FullyQualifiedErrorId : Veeam.Backup.LicenseLib.CLicenseException,Veeam.Backup.PowerShell.Commands.Backup.StartV
   BRZip


Is there a way to remove this, revert back to the free edition (I have set the UI to the Free Functionality only not the Full functionality) but so far am unable to get rid of this trial license restriction.
Sorry if this post hurts your head with its stupidity but we've been trying to sort this for 3 weeks.
Thanks
Foo68
Lurker
 
Posts: 2
Liked: never
Joined: Tue Aug 25, 2015 11:32 am
Full Name: richard mount

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Tue Aug 25, 2015 4:08 pm

Hmm, I don't think that I've tested the script against deployment that has trial license expired.

If possible, I'd recommend re-installing backup server from a scratch and not specifying any license during installation (that should make installation free edition from the beginning).

Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby Foo68 » Wed Aug 26, 2015 8:12 am

Cheers for the reply, I'll give that a go. Many thanks. :-)
Foo68
Lurker
 
Posts: 2
Liked: never
Joined: Tue Aug 25, 2015 11:32 am
Full Name: richard mount

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby v.Eremin » Wed Aug 26, 2015 11:25 am

Kindly, let me know how the process goes and whether the issue persists after re-installation. Thanks.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Discussion on blog post: Update 2 featuring PowerShell

Veeam Logoby coder51 » Wed Aug 26, 2015 3:17 pm

Hello, I'm new to Veeam and wanted to try out the PowerShell script being talked about here. Unfortunately, it looks like the download links are all dead, along with most of the screen-shots in the shown in the blog post. Does anyone happen to have a copy of the script on hand?
coder51
Lurker
 
Posts: 2
Liked: 1 time
Joined: Wed Aug 26, 2015 3:10 pm

PreviousNext

Return to PowerShell



Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests