Here it is: Powershell script to add VEB-EMails

Backup agent for Microsoft Windows servers and workstations (formerly Veeam Endpoint Backup FREE)

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Fri May 15, 2015 5:01 am

Dean,

The update functionality didn't work in the beta in RC versions hence the reason why it didn't tell you to update. I certainly advise you to uninstall and update because the GA version fixes lots of things and we don't support the beta or RC versions anymore.

BUT, before you do, it is important to know a few things:

1. You will need to start over again. We made significant changes between RC and GA. Uninstall the RC (control panel, add/remove programs) and re-install the GA version. That means you need to recreate your backup job and the recovery ISO? There are no worries about the USB hard drive registration though. When creating the job again, just point it to that HDD and it will be used again.

2. It will become a whole new backup chain. As said, the changes are too big to continue to use the old chain.

3. You won't be able to recover from your old backups anymore. If you still think that will be necessary, I advise you to keep the backups (until the X days are over), keep the installer for the RC somewhere safe, and if necessary, install RC on a VM (then you can use that one to recover whatever you want from the old backups)

Cheers

Mike
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby gmele » Fri May 15, 2015 12:08 pm

Hi Michael,

great script! I implemented it and it works fine. As we don't have a local SMTP mail server I created a google account for my client and integrated the use of the sendEmail-v156 utility.

Now we know if the backup has run and whether it was successful or not.

Thank you,

Joe
gmele
Enthusiast
 
Posts: 26
Liked: never
Joined: Thu Apr 30, 2015 9:10 pm
Full Name: Mele Giuseppe

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby ominfo » Fri May 15, 2015 4:56 pm

When i test the script manually with powershell ... it's work.

But when i'm trying using with event monitoring in the task scheduled... i'm not receiving any email. What i'm doing wrong i'm my tasks settings ?

REgards
ominfo
Novice
 
Posts: 7
Liked: never
Joined: Fri May 15, 2015 4:45 pm
Full Name: Olivier Martin

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Sat May 16, 2015 5:27 am

Hi Oliver,

Can you describe us (be as detailed as possible) how you have created your scheduled task? Maybe we can figure out what's wrong

Thanks

Mike
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby ominfo » Sat May 16, 2015 12:05 pm

In General :
Run whether user is logged on or not
Run with highest privileges
Password stored

Trigger
On an event
Basic
Log : Veeam Endpoint Backup
Source : Veeam Endpoint Backup
Enabled

Action :
Start a program c:\veeamscript.ps1

Settings and conditions by default
ominfo
Novice
 
Posts: 7
Liked: never
Joined: Fri May 15, 2015 4:45 pm
Full Name: Olivier Martin

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Mon May 18, 2015 8:12 am

Olivier,

I don't see anything wrong here... did you trigger the task manually once? I have heard that it needs to triggered (not the script, but the scheduled task itself) before it actually does something. (No idea why, but that is what he heard...)

Let me know

Mike
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby JaxIsland7575 » Mon May 18, 2015 1:19 pm

I have had situations where I created a task and tried to run it manually and it fails. I have had to populate the "Start In:" field to get it to work. So if my script path is: "C:\scripts\Veeam.ps1" then the Start In field is: "C:\scripts"

Just a thought and hope it helps.
VMCE v9
JaxIsland7575
Veeam Vanguard
 
Posts: 364
Liked: 98 times
Joined: Mon Apr 27, 2015 1:59 pm
Location: NY, USA
Full Name: Ryan Jacksland

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Deansbkk » Tue May 19, 2015 12:57 am

Mike,

Please note that I did install the GA version, am currently running the GA version, and it's the GA version that is producing these old EventID's. I can't remember for sure if I uninstalled the RC version or just installed GA over top of RC (think the latter). Anyhow it looks like I need to uninstall my current GA and then reinstall to fix this.

Regarding the USB hard drive registration, the issue is we rotate 4 hard drives (1 drive per week). On the weekly change will I have to manually register the hard drives again (if yes I realize it will be on the first rotation only) or is there a way I can avoid this (backup/restore the current hard drive registrations).

Thanks again.

Dean
Deansbkk
Novice
 
Posts: 5
Liked: never
Joined: Tue Feb 23, 2010 6:13 am
Full Name: Dean S

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Tue May 19, 2015 4:35 am

Dean,

I'm not sure, but I believe you will need to register them again...

Mike
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby ominfo » Tue May 19, 2015 6:50 pm

I have added the "Start In" infos... no more success

I have tried to end and restart the task...

The result is (0x41306) does that mean something for you ?
ominfo
Novice
 
Posts: 7
Liked: never
Joined: Fri May 15, 2015 4:45 pm
Full Name: Olivier Martin

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Tue May 19, 2015 7:01 pm

Not sure why it is happening but it means: The last run of the task was terminated by the user
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby ominfo » Tue May 19, 2015 7:03 pm

Ok... so this is only a confirmation that i ended the task erlier...

So because i'm not receiving any alert email... it's means to me that the trigger is not working... but why ? :(
ominfo
Novice
 
Posts: 7
Liked: never
Joined: Fri May 15, 2015 4:45 pm
Full Name: Olivier Martin

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby Mike Resseler » Tue May 19, 2015 7:08 pm

Good question...

Can you try to delete the scheduled task and recreate it? After recreating, run it manually once

(Sorry, kind of getting out of ideas here...)
Mike Resseler
Veeam Software
 
Posts: 3345
Liked: 380 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby JaxIsland7575 » Fri May 22, 2015 4:19 pm

I am stuck with this as well. I can manually run the PowerShell script with no problem and I get the email. When I use task scheduler the job runs and stays running until I manually end it with no email being sent. I have created the job a couple times with the same result. I have it running as an admin with highest privileges. Any ideas from the gallery would be appreciated!
VMCE v9
JaxIsland7575
Veeam Vanguard
 
Posts: 364
Liked: 98 times
Joined: Mon Apr 27, 2015 1:59 pm
Location: NY, USA
Full Name: Ryan Jacksland

Re: Here it is: Powershell script to add VEB-EMails

Veeam Logoby JaxIsland7575 » Fri May 22, 2015 5:03 pm

As a follow up, I went to Event Viewer and right click the 109 Event and said to Attach Task to This Event and let it create the task that way. Double checked settings and same result as if I manually create the task with it just sitting and running.
VMCE v9
JaxIsland7575
Veeam Vanguard
 
Posts: 364
Liked: 98 times
Joined: Mon Apr 27, 2015 1:59 pm
Location: NY, USA
Full Name: Ryan Jacksland

PreviousNext

Return to Veeam Agent for Windows



Who is online

Users browsing this forum: vClintWyckoff and 13 guests